File tree Expand file tree Collapse file tree 1 file changed +3
-9
lines changed Expand file tree Collapse file tree 1 file changed +3
-9
lines changed Original file line number Diff line number Diff line change @@ -13,15 +13,9 @@ const nextConfig = {
1313 async headers ( ) {
1414 return [
1515 {
16- // Apply COEP/COOP globally, EXCEPT for /trade and /:locale/trade
17- // Excludes paths that are exactly `/trade` or `/<anything>/trade`
18- source : '/((?!(?:[^/]+/)?trade/?$).*)' ,
19- headers : [
20- { key : 'cross-origin-embedder-policy' , value : 'credentialless' } ,
21- { key : 'cross-origin-resource-policy' , value : 'cross-origin' } ,
22- { key : 'cross-origin-opener-policy' , value : 'same-origin' } ,
23- { key : 'Content-Security-Policy' , value : "frame-ancestors 'self'" }
24- ]
16+ // Global headers (NO COEP/COOP) to avoid breaking third-party iframes on SPA nav
17+ source : '/(.*)' ,
18+ headers : [ { key : 'cross-origin-resource-policy' , value : 'cross-origin' } ]
2519 } ,
2620 {
2721 // Specific headers for Chatwoot proxy to ensure iframe compatibility
You can’t perform that action at this time.
0 commit comments