Remove CSP for now, will not work because of react bug

This commit is contained in:
2023-10-19 16:50:24 -04:00
parent 13b02c39a0
commit 72884ee715
2 changed files with 3 additions and 14 deletions

View File

@ -157,20 +157,17 @@ function getMarkup(
<div className="App">
<Navigation {...loaderData} />
{children}
<Scripts nonce={loaderData.nonce} />
<Scripts />
</div>
</ChakraProvider>
</StrictMode>
);
return (
<html
data-theme={loaderData.theme}
lang="en-US"
>
<html data-theme={loaderData.theme} lang="en-US">
<head>
<Links />
<style nonce={loaderData.nonce}>
<style>
{`
:root {
color-scheme: ${loaderData.theme};
@ -180,7 +177,6 @@ function getMarkup(
{serverStyleData?.map(({ key, ids, css }) => (
<style
key={key}
nonce={loaderData.nonce}
data-emotion={`${key} ${ids.join(" ")}`}
dangerouslySetInnerHTML={{ __html: css }}
/>