-
-
Notifications
You must be signed in to change notification settings - Fork 322
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 csp rules for api #1882
Add csp rules for api #1882
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM.
Co-authored-by: Martin Stone <[email protected]>
Is this only relevant for dev builds? If so, do we really want to add this noise for everyone? |
It is not much noise though. But a full proper approach would be checking the route and disabling the CSP on the fly (see e.g. for log-viewer). |
Made the pull request cleaner:
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Untested
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Only skimmed, but it feels neater than the previous options.
* disable csp when query for docs/api --------- Co-authored-by: Benoît Viguier <[email protected]> Co-authored-by: Martin Stone <[email protected]>
This adds some new CSP rules needed to be able to view the API docs.