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
Document some methods in ActionDispatch::ContentSecurityPolicy [skip-ci] #44451
Conversation
4254da2
to
a10cb36
Compare
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.
Two minor nits, otherwise looks good! 👍
Co-authored-by: Jonathan Hefner <jonathan@hefner.pro>
7dc332b
to
92d877b
Compare
# Pass +false+ to allow it again: | ||
# | ||
# policy.block_all_mixed_content false | ||
# |
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.
@jonathanhefner Do you think this blank line should be deleted?
I'm seeing both for comments ending with single line code blocks.
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.
I don't know that we have policy either way. Personally, I think it looks nicer to have it (and for multi-line code blocks, too). 👍
Document some methods in ActionDispatch::ContentSecurityPolicy [skip-ci] (cherry picked from commit 5fb0ad3)
Thanks @jonathanhefner 🙌 ! |
The Content Security Policy is mostly documented in the guides.
This documents some methods on
ActionDispatch::ContentSecurityPolicy
.