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

Standard header only #75

Merged
merged 8 commits into from
Nov 11, 2013
Merged

Standard header only #75

merged 8 commits into from
Nov 11, 2013

Conversation

oreoshake
Copy link
Contributor

Rips out all browser-specific CSP handling and only serves the standard header.

A followup: I'd like to rip out the brwsr gem and not do any UA sniffing. This will mean more headers are sent...

Fixes #73

@oreoshake
Copy link
Contributor Author

@bemurphy this rips out a lot of your code. The separation really helped :)

@bemurphy
Copy link
Contributor

bemurphy commented Nov 5, 2013

whoa time machine. @oreoshake cool glad it helped!


# you can also use lambdas to use dynamically generated nonces
:script_nonce => lambda { @script_nonce] = 'something' }
:script_nonce => lambda { @script_nonce] = 'something' }
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This seems like a typo... What's with the ']' just hanging there?

@reedloden
Copy link
Contributor

I support ripping out brwsr and just sending more headers... Honestly, I send most of these via Apache or nginx rules anyway.

@presidentbeef
Copy link

Looks good to me but I'm not really an expert.
🐂

oreoshake pushed a commit that referenced this pull request Nov 11, 2013
@oreoshake oreoshake merged commit b4013c4 into master Nov 11, 2013
This was referenced Nov 11, 2013
@caniszczyk caniszczyk deleted the standard_header_only branch March 26, 2014 21:09
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.

Drop all CSP X- header support if support is above X%
4 participants