Skip to content

Commit

Permalink
Update csp configs
Browse files Browse the repository at this point in the history
  • Loading branch information
paul-phan authored Sep 6, 2024
1 parent abdd3b3 commit cb361d8
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion app/entry.server.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,8 @@ export default async function handleRequest(
}

responseHeaders.set("Content-Type", "text/html");
responseHeaders.set("Content-Security-Policy", header);
// TODO: change to Content-Security-Policy when you ready with your CSP configs.
responseHeaders.set("Content-Security-Policy-Report-Only", header);
return new Response(body, {
headers: responseHeaders,
status: responseStatusCode,
Expand Down

0 comments on commit cb361d8

Please sign in to comment.