Comments (5)
There is no way to do this per device no. We can't really control how browsers implement the spec and how buggy they are though, so I'm afraid this can't be fixed. What I'll do though is add a config flag to let people send only the standard Content-Security-Policy header and not the old X- and Webkit- prefixed ones. That should effectively exclude older browsers with possibly buggy implementations. Not very nice but better than breaking the site entirely for those users I guess.
from nelmiosecuritybundle.
According to http://michael-coates.blogspot.com/2013/09/security-capabilities-comparison-hsts.html only IE10/11 won't be covered by the standard header, other older browsers IMO are an acceptable loss. That said enabling CSP is pretty beneficial even if you don't cover all browsers, especially with reporting it allows you to fix any issue as soon as a Chrome/Firefox/Opera/Safari user hits the site. Up to you though :)
from nelmiosecuritybundle.
Thanks, @Seldaek. I appreciate you taking a look into this. I have also heard to stay away from the older headers, so this fix works out well.
from nelmiosecuritybundle.
It's tagged in 1.4.0 now by the way.
from nelmiosecuritybundle.
Got it, I just updated. Thank you for updating the documentation to match. Made it really easy to switch over.
from nelmiosecuritybundle.
Related Issues (20)
- [RFC] Remove Cookie Session Handler in 3.0 HOT 1
- Can't use environment variables to enable/disable features HOT 2
- Problem with latest Symfony update and signed_cookie feature HOT 5
- Incompatible with Symfony's clearCookie() strategy HOT 1
- cspscript for encore_entry_script_tags and cspstyle for encore_entry_link_tags HOT 2
- Issue with CSP config HOT 2
- Remove "Server" header HOT 1
- Reusing nonce for Turbo Drive integration HOT 1
- Update the description of this GitHub repository HOT 2
- Update the default hashing algorithm used in signed cookies
- DirectiveSet::canNotBeFallbackedByDefault(): Argument #2 ($value) must be of type string, bool given
- Introduce `ExternalRedirectResponse` for more fine-grained redirection control
- When script-src is set to strict-dynamic, 2 nonces are listed in CSP header HOT 1
- CSP interferes with var-dumper HOT 1
- Nonce is empty unless dump using twig HOT 4
- [3.2.0] The report-uri directive has been deprecated HOT 2
- Incompatibility with twig 3.9 HOT 1
- Service dependency injection for controller action: Getting CSP nonce in controller HOT 7
- Unexpecting appearance of unsafe-inline on CSP HOT 3
- Add mechanism to modify directives during or after request handling
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from nelmiosecuritybundle.