Replies: 1 comment
-
I think these two resources should help you out:
Basically, you can set headers for certain paths, including all, in next.config.js, and there you can set the value of |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
I want to allow my NextJS app to load inside a Chrome Extension. Currently my app sends a header
X-Frame-Allow: SAMEORIGIN
which restricts this behavior, so as a work around, I am stripping it away in my extension - this feels like a hack.How should I disable this header altogether or allow it only for my extension? I see Next has a nifty way to disable
X-Powered-By
which is to setpoweredBy
as false innext.config.js
- is there something similar forX-Frame-Allow
?Beta Was this translation helpful? Give feedback.
All reactions