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' to 'deny' #87

Closed
phdelodder opened this issue Jun 14, 2019 · 8 comments
Closed

'X-Frame-Options' to 'deny' #87

phdelodder opened this issue Jun 14, 2019 · 8 comments

Comments

@phdelodder
Copy link

phdelodder commented Jun 14, 2019

Version of HACS

0.7.0

Describe the bug

The Community page on the frontend doesn't load.

Refused to display 'https://URL/community_2194ae62-b0c8-4774-a82f-4d6f1789cc6e-05a4c434-312e-4984-9356-a1b282691657' in a frame because it set 'X-Frame-Options' to 'deny'.

Debug log


component log removed
@ludeeus
Copy link
Member

ludeeus commented Jun 14, 2019

That header is not set by this component, it works just fine here.
This is the headers reported by postman

image

Try a different browser and/or incognito mode.

@phdelodder
Copy link
Author

I have tried firefox and chrome, even incognito can't get it working.

@ludeeus
Copy link
Member

ludeeus commented Jun 14, 2019

Can you paste a similar screenshot from your client?
image

@phdelodder
Copy link
Author

phdelodder commented Jun 15, 2019

image

If I go to https://externalhostname/community_751d4493-72b6-443e-a5ab-378b72f9f4cb-a6edb994-01b8-477c-b30d-574befcf7202, it works. Note I use traefik as a proxy.

If I don't use the proxy it works: http://host:8123/community

@ludeeus
Copy link
Member

ludeeus commented Jun 15, 2019

Then your proxy is doing something funky here.
in the list you have on your right there, find and mark "community" then upload a screenshot of that.

@phdelodder
Copy link
Author

image

@ludeeus
Copy link
Member

ludeeus commented Jun 15, 2019

Set traefik.frontend.headers.frameDeny in your Traefik config.
https://docs.traefik.io/configuration/backends/docker/

@mpeterson
Copy link

Set traefik.frontend.headers.frameDeny in your Traefik config.
https://docs.traefik.io/configuration/backends/docker/

Would be nice to have a not on the installation docs. It took me a long while to figure out (and only did after finding this issue)

@github-actions github-actions bot locked and limited conversation to collaborators Aug 28, 2021
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants