Skip to content

Commit 5d32a27

Browse files
committed
Update security header
1 parent 37a5bcf commit 5d32a27

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

next.config.mjs

+1-1
Original file line numberDiff line numberDiff line change
@@ -19,9 +19,9 @@ export default (phase) =>
1919
key: "Access-Control-Allow-Headers",
2020
value: "Content-Type, x-trace-secret",
2121
},
22+
{ key: "Cross-Origin-Resource-Policy", value: "cross-origin" },
2223
{ key: "Referrer-Policy", value: "no-referrer" },
2324
{ key: "X-Content-Type-Options", value: "nosniff" },
24-
{ key: "X-XSS-Protection", value: "1; mode=block" },
2525
{
2626
key: "Content-Security-Policy",
2727
value: [

public/_headers

+1-1
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,6 @@
33
Access-Control-Allow-Methods: GET, POST, PUT, OPTIONS
44
Access-Control-Allow-Headers: Content-Type, x-trace-secret
55
Referrer-Policy: no-referrer
6+
Cross-Origin-Resource-Policy: cross-origin
67
X-Content-Type-Options: nosniff
7-
X-XSS-Protection: 1; mode=block
88
Content-Security-Policy: default-src 'none'; script-src 'self' static.cloudflareinsights.com; style-src * 'self' 'unsafe-inline'; img-src * 'self' data: blob: https://api.trace.moe; font-src 'self'; media-src blob: 'self' https://api.trace.moe; worker-src 'self'; form-action 'self'; base-uri 'none'; frame-ancestors 'none'; manifest-src 'self'; block-all-mixed-content; connect-src blob: 'self' https://cloudflareinsights.com https://api.trace.moe https://graphql.anilist.co

0 commit comments

Comments
 (0)