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

Metadata page requires style-src hash in CSP #1332

Open
Tracked by #1776
baszoetekouw opened this issue Oct 21, 2024 · 3 comments
Open
Tracked by #1776

Metadata page requires style-src hash in CSP #1332

baszoetekouw opened this issue Oct 21, 2024 · 3 comments

Comments

@baszoetekouw
Copy link
Member

baszoetekouw commented Oct 21, 2024

For some reason, the metadata page of engineblock won't display properly in Edge/Chrome without a CSP style-src hash. Investigate why this hapens.

@baszoetekouw baszoetekouw changed the title Metadata page should not use embedded CSS Metadata page requires style-src hash in CSP Oct 21, 2024
@baszoetekouw
Copy link
Member Author

Note: currently no CSP header is set on engine.

@johanib
Copy link
Contributor

johanib commented Jan 29, 2025

Discussed: On prod, no CSP header is set. We see no reason why this is not set stricter. But when the style-src is restricted, the metadata page does not show properly.

So investigate why, and restrict the style-src CSP.

@baszoetekouw
Copy link
Member Author

This the (stricter) CSP that we would like to use, if feasible:

content-security-policy: default-src 'none'; script-src 'self'; style-src 'self'; font-src 'self'; connect-src 'self'; img-src 'self' https://static.openconex.org http://localhost:* data:; form-action 'self'; frame-ancestors 'none'; base-uri 'none'

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
Status: Backlog
Development

No branches or pull requests

2 participants