Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

X-Frame-Options #115

Open
fabiofernandeshyp opened this issue Jun 17, 2024 · 0 comments
Open

X-Frame-Options #115

fabiofernandeshyp opened this issue Jun 17, 2024 · 0 comments

Comments

@fabiofernandeshyp
Copy link

Hi,

I having a issue regarding the X-Frame-Options header configuration on my Next.js frontend deployed on Vercel.

Problem Description:

When attempting to embed my Next.js application in an iframe on another domain (specifically, within the Sanity Studio at (MY URL), i've encountering the following error message in the browser console:

Refused to display 'MY URL in a frame because it set 'X-Frame-Options' to 'deny'.

Current Configuration:
Upon inspection of the headers returned by our Next.js application, I noticed the following relevant headers:

X-Frame-Options: ALLOW-FROM URM

Still in sanity i cannot preview anything because i get an error
Refused to display 'MY URL' in a frame because it set 'X-Frame-Options' to 'deny'.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant