Skip to content

Commit

Permalink
Change form-action to self
Browse files Browse the repository at this point in the history
  • Loading branch information
nygrenh committed Apr 15, 2024
1 parent f221237 commit 1e19bbe
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion shared-module/src/utils/responseHeaders.js
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ function generateNormalResponseHeaders(options = { requireTrustedTypesFor: false
"object-src 'none'",
"frame-ancestors 'none'",
"base-uri 'none'",
"form-action 'none'",
"form-action 'self'",
"media-src 'self' https://storage.googleapis.com",
// Forces us to sanitize html before using dangerouslySetInnerHTML. Please see: https://developer.mozilla.org/en-US/docs/Web/HTTP/Headers/Content-Security-Policy/require-trusted-types-for
options.requireTrustedTypesFor && "require-trusted-types-for 'script'",
Expand Down

0 comments on commit 1e19bbe

Please sign in to comment.