Skip to content

Commit 8bebef3

Browse files
authored
Set Cross Origin Resource Policy to cross-origin (#280)
1 parent b33e6fc commit 8bebef3

File tree

1 file changed

+13
-0
lines changed

1 file changed

+13
-0
lines changed

next.config.js

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -45,6 +45,19 @@ const nextJsConfig = {
4545
},
4646
],
4747
},
48+
{
49+
source: '/:path*',
50+
headers: [
51+
{
52+
key: 'Cross-Origin-Resource-Policy',
53+
value: 'cross-origin',
54+
},
55+
{
56+
key: 'Cross-Origin-Embedder-Policy',
57+
value: 'credentialless',
58+
},
59+
],
60+
},
4861
]
4962
},
5063
}

0 commit comments

Comments
 (0)