File tree Expand file tree Collapse file tree 1 file changed +34
-0
lines changed
Expand file tree Collapse file tree 1 file changed +34
-0
lines changed Original file line number Diff line number Diff line change @@ -12,4 +12,38 @@ const nextConfig: NextConfig = {
1212 output : "standalone" ,
1313} ;
1414
15+ export function headers ( ) {
16+ return [
17+ {
18+ source : "/((?!demo).*)" ,
19+ headers : [
20+ {
21+ key : "Strict-Transport-Security" ,
22+ value : "max-age=31536000; includeSubDomains; preload" ,
23+ } ,
24+ {
25+ key : "X-Content-Type-Options" ,
26+ value : "nosniff" ,
27+ } ,
28+ {
29+ key : "Referrer-Policy" ,
30+ value : "strict-origin-when-cross-origin" ,
31+ } ,
32+ {
33+ key : "Permissions-Policy" ,
34+ value : "camera=(), microphone=(), geolocation=()" ,
35+ } ,
36+ {
37+ key : "X-Frame-Options" ,
38+ value : "DENY" ,
39+ } ,
40+ {
41+ key : "Content-Security-Policy" ,
42+ value : "frame-ancestors 'none'" ,
43+ } ,
44+ ] ,
45+ } ,
46+ ] ;
47+ }
48+
1549export default nextConfig ;
You can’t perform that action at this time.
0 commit comments