Skip to content

Commit

Permalink
next.config.js csp 설정 변경
Browse files Browse the repository at this point in the history
  • Loading branch information
youngwan2 committed Jul 11, 2024
1 parent e67cad8 commit a7cfbac
Showing 1 changed file with 7 additions and 2 deletions.
9 changes: 7 additions & 2 deletions next.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -47,12 +47,17 @@ const nextConfig = {
key: 'Access-Control-Allow-Headers',
value: 'Content-Type, Authorization',
},
],
},
{
source: '/(.*)',
headers: [
{
key: 'Content-Security-Policy',
value: ContentSecurityPolicy.replace(/\n/g, ''),
}
],
},
]
}
]
},
}
Expand Down

0 comments on commit a7cfbac

Please sign in to comment.