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

Add base-uri and report-sample csp directives #6194

Open
wants to merge 2 commits into
base: master
Choose a base branch
from

Conversation

L1ghtn1ng
Copy link

The base-uri directive prevents base elements from injected as a way to bypass the csp. Also adding report-sample which helps with debugging what is being blocked with the CSP so can be easier fixed

@AdSchellevis
Copy link
Member

@L1ghtn1ng I suppose this PR relates to #6195 or am I missing something?

@L1ghtn1ng
Copy link
Author

L1ghtn1ng commented Dec 14, 2022 via email

@AdSchellevis AdSchellevis self-assigned this Dec 14, 2022
@AdSchellevis
Copy link
Member

I'll put it on my list of things todo to review and test this one.

@L1ghtn1ng
Copy link
Author

Hi @AdSchellevis any updates on this?

@AdSchellevis
Copy link
Member

not really, too busy with other work and not enough context on why we should do this.

@L1ghtn1ng
Copy link
Author

L1ghtn1ng commented Sep 5, 2023 via email

@AdSchellevis
Copy link
Member

I don't mind improving the situation, but someone needs to test this thoroughly, the modification should be consistent between legacy and mvc parts and should follow best practices (I can already see the next PR coming in to remove unsafe-inline for example https://developer.mozilla.org/en-US/docs/Web/HTTP/Headers/Content-Security-Policy/base-uri).

This needs work to do it right, which unfortunately isn't high enough on our priority list. If you're willing to finish it and document test results, we can reevaluate if we should move it up the list. In our experience changes like these have a tendency to haunt us later.

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

Successfully merging this pull request may close these issues.

None yet

2 participants