Coder Social home page Coder Social logo

Standardize "nosniff" about fetch HOT 7 CLOSED

whatwg avatar whatwg commented on September 2, 2024
Standardize "nosniff"

from fetch.

Comments (7)

annevk avatar annevk commented on September 2, 2024 2

I think we should just leave it and not add complexity. And in the future avoid inventing X--stuff altogether. E.g. HTML has application/x-www-form-urlencoded and it's doing just fine for close to two decades now.

from fetch.

btoews avatar btoews commented on September 2, 2024

👏

from fetch.

wanderview avatar wanderview commented on September 2, 2024

I wrote a gecko bug to implement this for fetch:

https://bugzilla.mozilla.org/show_bug.cgi?id=1150897

Our older general "nosniff" bug:

https://bugzilla.mozilla.org/show_bug.cgi?id=471020

from fetch.

igrigorik avatar igrigorik commented on September 2, 2024

@annevk https://tools.ietf.org/html/rfc6648 ... can we drop the X-? /cc @mnot

from fetch.

annevk avatar annevk commented on September 2, 2024

@igrigorik that would break existing content.

from fetch.

igrigorik avatar igrigorik commented on September 2, 2024

Hmm, I guess a broader question then.. For places where we use X-, how do we migrate away from them? Should we add a clause indicating that UA's should look for optionally X- prefixed headers? i.e. X-Thing == Thing?

from fetch.

mnot avatar mnot commented on September 2, 2024

Yep, that RFC is for new things, not existing things. If you need to make a breaking change on one of those headers, that's your opportunity to change the name, but don't do it just to change the name; that's a worse outcome.

from fetch.

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.