Giter Site home page Giter Site logo

Remove browser sniffing about csp HOT 6 CLOSED

EvanHahn avatar EvanHahn commented on June 14, 2024 7
Remove browser sniffing

from csp.

Comments (6)

XhmikosR avatar XhmikosR commented on June 14, 2024

I think it's fine to do this in a major version bump. Which browsers still need the old header exactly? On the other hand having it disabled by default, does it slow down things still?

from csp.

EvanHahn avatar EvanHahn commented on June 14, 2024

Browsers have varying support for CSP. Some use different headers (like X-WebKit-CSP instead of Content-Security-Policy) where others have different names for directives (like allow instead of default-src). This module currently tries to figure those things out, but I intend to remove them unless people think doing so is a bad idea.

from csp.

kara-ryli avatar kara-ryli commented on June 14, 2024

Definitely 👍. We've been running with browser sniffing off since #32 landed -- my biggest concern at that time was the cacheability of browser-sniffed requests.

from csp.

XhmikosR avatar XhmikosR commented on June 14, 2024

TBH I too have browser sniffing off for years.

from csp.

webuniverseio avatar webuniverseio commented on June 14, 2024

👍 I had to turn off browser sniffing too and reasons for removal make sense.

from csp.

EvanHahn avatar EvanHahn commented on June 14, 2024

This has been addressed in helmet@4 and [email protected].

I'm going to be archiving this repository soon and moving everything to https://github.com/helmetjs/helmet/, so feel free to open an issue there if you run into any problems.

from csp.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.