Skip to content

Commit

Permalink
Merge pull request #457 from GalacticHypernova/patch-3
Browse files Browse the repository at this point in the history
fix: remove navigate-to csp directive
  • Loading branch information
vejja committed May 28, 2024
2 parents d40ced0 + b1d3853 commit 1346bc3
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
1 change: 0 additions & 1 deletion docs/content/1.documentation/2.headers/1.csp.md
Original file line number Diff line number Diff line change
Expand Up @@ -75,7 +75,6 @@ contentSecurityPolicy: {
'sandbox'?: CSPSandboxValue[] | false;
'form-action'?: CSPSourceValue[] | false;
'frame-ancestors'?: ("'self'" | "'none'" | string)[] | false;
'navigate-to'?: ("'self'" | "'none'" | "'unsafe-allow-redirects'" | string)[] | false;
'report-uri'?: string[] | false;
'report-to'?: string | false;
'upgrade-insecure-requests'?: boolean;
Expand Down
3 changes: 2 additions & 1 deletion src/types/headers.ts
Original file line number Diff line number Diff line change
Expand Up @@ -82,7 +82,8 @@ export type ContentSecurityPolicyValue = {
'sandbox'?: CSPSandboxValue[] | string | false;
'form-action'?: CSPSourceValue[] | string | false;
'frame-ancestors'?: ("'self'" | "'none'" | string)[] | string | false;
'navigate-to'?: ("'self'" | "'none'" | "'unsafe-allow-redirects'" | string)[] | string | false;
// See https://github.com/w3c/webappsec-csp/pull/564
//'navigate-to'?: ("'self'" | "'none'" | "'unsafe-allow-redirects'" | string)[] | string | false;
'report-uri'?: string[] | string | false;
'report-to'?: string | false;
'upgrade-insecure-requests'?: boolean;
Expand Down

0 comments on commit 1346bc3

Please sign in to comment.