Skip to content

Commit

Permalink
csp for style and img adjustment
Browse files Browse the repository at this point in the history
  • Loading branch information
ynwd committed Aug 18, 2024
1 parent 22213f3 commit 53233c8
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion http/server/render.ts
Original file line number Diff line number Diff line change
Expand Up @@ -130,7 +130,7 @@ es.onmessage = function(e) {
"content-type": "text/html",
"x-request-id": new Date().getTime().toString(),
"Content-Security-Policy":
`default-src 'self'; script-src 'self' 'nonce-${nonce}' 'strict-dynamic'; style-src 'self' 'unsafe-inline'; font-src 'self'; img-src 'self'; frame-src 'self'`,
`script-src 'self' 'nonce-${nonce}' 'strict-dynamic';`,
});
const children = typeof p.component == "function"
? h(p.component as FunctionComponent, { data, nonce })
Expand Down

0 comments on commit 53233c8

Please sign in to comment.