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

Embed in webframe #1203

Open
maluco68 opened this issue Dec 8, 2024 · 5 comments
Open

Embed in webframe #1203

maluco68 opened this issue Dec 8, 2024 · 5 comments

Comments

@maluco68
Copy link

maluco68 commented Dec 8, 2024

can somebody guide me how to embed "answer" in a webframe to my webpage? it shows always "refused to connect".

@fenbox fenbox transferred this issue from apache/answer-plugins Dec 10, 2024
@fenbox
Copy link
Member

fenbox commented Dec 11, 2024

There is indeed a problem, what is the purpose of doing so? @LinkinStars

@LinkinStars
Copy link
Member

@maluco68 Due to security concerns, the X-Frame-Options header was set to DENY in the returned HTTP headers, thus preventing it from being embedded in other webpages.

https://github.com/apache/incubator-answer/blob/f7731bc675930f9cb9fa7a6f6346c102246b2c4d/internal/router/ui.go#L134

@maluco68
Copy link
Author

maluco68 commented Dec 12, 2024

@maluco68 Due to security concerns, the X-Frame-Options header was set to DENY in the returned HTTP headers, thus preventing it from being embedded in other webpages.

https://github.com/apache/incubator-answer/blob/f7731bc675930f9cb9fa7a6f6346c102246b2c4d/internal/router/ui.go#L134

as im a newbe in html an all that stuff, is there an option to allow? what i read is the "xframe allow-from http..." option is obsolete and will be ignored on certain browsers, what are the alternative options and how could i change it or is this deny rule fixed by your developers and not changeable by users?

@LinkinStars
Copy link
Member

@maluco68 Since the X-Frame-Options option is fixed in the code, it cannot be changed by configuration or admin. It can only be removed by modifying the source code.

@sosyz
Copy link
Member

sosyz commented Dec 29, 2024

These security settings are designed to ensure users can safely use answer. If you need to remove or customize these security settings to suit your environment, you can modify the response headers by configuring a reverse proxy server (such as Nginx or Caddy).

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

4 participants