Skip to content

Commit 1346bc3

Browse files
authored
Merge pull request #457 from GalacticHypernova/patch-3
fix: remove navigate-to csp directive
2 parents d40ced0 + b1d3853 commit 1346bc3

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

docs/content/1.documentation/2.headers/1.csp.md

-1
Original file line numberDiff line numberDiff line change
@@ -75,7 +75,6 @@ contentSecurityPolicy: {
7575
'sandbox'?: CSPSandboxValue[] | false;
7676
'form-action'?: CSPSourceValue[] | false;
7777
'frame-ancestors'?: ("'self'" | "'none'" | string)[] | false;
78-
'navigate-to'?: ("'self'" | "'none'" | "'unsafe-allow-redirects'" | string)[] | false;
7978
'report-uri'?: string[] | false;
8079
'report-to'?: string | false;
8180
'upgrade-insecure-requests'?: boolean;

src/types/headers.ts

+2-1
Original file line numberDiff line numberDiff line change
@@ -82,7 +82,8 @@ export type ContentSecurityPolicyValue = {
8282
'sandbox'?: CSPSandboxValue[] | string | false;
8383
'form-action'?: CSPSourceValue[] | string | false;
8484
'frame-ancestors'?: ("'self'" | "'none'" | string)[] | string | false;
85-
'navigate-to'?: ("'self'" | "'none'" | "'unsafe-allow-redirects'" | string)[] | string | false;
85+
// See https://github.com/w3c/webappsec-csp/pull/564
86+
//'navigate-to'?: ("'self'" | "'none'" | "'unsafe-allow-redirects'" | string)[] | string | false;
8687
'report-uri'?: string[] | string | false;
8788
'report-to'?: string | false;
8889
'upgrade-insecure-requests'?: boolean;

0 commit comments

Comments
 (0)