Remove CSP for now, will not work because of react bug
This commit is contained in:
10
app/root.tsx
10
app/root.tsx
@ -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 }}
|
||||
/>
|
||||
|
Reference in New Issue
Block a user