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

Enable Content-Security-Policy to prevent Searchworks from being embedded in a frame #4089

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

jcoyne
Copy link
Contributor

@jcoyne jcoyne commented Mar 6, 2024

We are currently seeing warnings in the browser console that says:

The 'X-Frame-Options' header should not be used. A similar effect, with more consistent support and stronger checks, can be achieved with the 'Content-Security-Policy' header and 'frame-ancestors' directive.

this enables Rails' CSP and adds the frame-ancestors

@jcoyne jcoyne changed the title Enable Content-Security-Policy to prevent XSS and injection attacks Enable Content-Security-Policy to prevent Searchworks from being embedded in a frame Mar 7, 2024
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

Successfully merging this pull request may close these issues.

1 participant