Remove CSP

This commit is contained in:
2023-10-19 16:49:35 -04:00
parent ee68c1b13d
commit c97029e510
4 changed files with 7 additions and 34 deletions

View File

@ -10,9 +10,9 @@ export default function handleRequest(
request: Request,
responseStatusCode: number,
responseHeaders: Headers,
remixContext: EntryContext & RequestContext
remixContext: EntryContext
) {
const cache = createEmotionCache(remixContext.data.nonce);
const cache = createEmotionCache();
const { extractCriticalToChunks } = createEmotionServer(cache);
const html = renderToString(
<ServerStyleContext.Provider value={null}>