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

Duplicate X-Frame-Options #47

Open
cherouvim opened this issue Dec 23, 2024 · 0 comments
Open

Duplicate X-Frame-Options #47

cherouvim opened this issue Dec 23, 2024 · 0 comments

Comments

@cherouvim
Copy link

Viewing a pdf document preview at /pages/UI.php?operation=details&class=DocumentFile&id=2&c[menu]=Document does not work because:

Refused to display 'https://example.com/' in a frame because it set multiple 'X-Frame-Options' headers with conflicting values ('sameorigin, '). Falling back to 'deny'.

That's because itop already emits a configurable X-Frame-Options http response header configured at pages/exec.php?exec_module=itop-config&exec_page=config.php&exec_env=production&c%5Bmenu%5D=ConfigEditor with name security_header_xframe. See documentation at https://www.itophub.io/wiki/page?id=3_0_0:admin:itop_configuration_file

security_header_xframe string No New in 2.7.2-2 - Value of the X-Frame-Options HTTP header sent by iTop SAMEORIGIN

The container has /etc/apache2/conf-available/security.conf which specifies this:

Header always set X-Frame-Options "sameorigin"

And this needs to be removed.

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