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

Refused to display in a frame because it set 'X-Frame-Options' to 'deny' #470

Closed
I-dont-code-til-death opened this issue Jun 10, 2023 · 1 comment

Comments

@I-dont-code-til-death
Copy link

I-dont-code-til-death commented Jun 10, 2023

Describe the bug
Hello guys,
I get the following error in the chrome console when trying to connect to wetty:

Refused to display 'https://pfcloud.ddns.net:8080/' in a frame because it set 'X-Frame-Options' to 'deny'

I already got it to work when accessing it directly. However I need to run it as a reverse proxy with nginx.
I followed this guide you published: https://github.com/butlerx/wetty/blob/main/docs/nginx.md.
Additionally I also have this line in my nginx config, however I dont really know if it has something to do with the error:
add_header Access-Control-Allow-Origin *;

To Reproduce
Steps to reproduce the behavior:

  1. Go to https://pfcloud.ddns.net:8080/wetty and you should get get same error.
    You will also get notified that this is a dangerous site. This is I think a side effect of the error as this didn´t occur when I accessed it directly and not through the reverse proxy.
  2. Open the console and you should see the exact same error and some others in the console.

Expected behavior
Well my expectation was that it would work exactly as it does when not routing it through a reverse proxy.

@I-dont-code-til-death I-dont-code-til-death changed the title Hello Guys, Refused to display in a frame because it set 'X-Frame-Options' to 'deny' Jun 10, 2023
@I-dont-code-til-death
Copy link
Author

I eventually got it to work with this article.

Maybe this should be added to the nginx reverse proxy guide as a possible fix.

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