Giter VIP home page Giter VIP logo

Comments (4)

annevk avatar annevk commented on June 6, 2024

I see @youennf pointed you here, but we don't really extend XMLHttpRequest anymore. It's in maintenance mode. https://github.com/whatwg/fetch/ still gets new features, though as was pointed out to you, many of the headers you want control over are set at the network layer and it's unlikely we'd give direct access over those to developers.

Are you using H2?

from xhr.

tinspin avatar tinspin commented on June 6, 2024

Do you mean HTTP/2? If so no.

I want to use XHR.

Why can't developers choose which headers they send to their own servers?

Have you googled "XHR remove header"?

from xhr.

annevk avatar annevk commented on June 6, 2024

As I said, we're no longer adding new features to XMLHttpRequest. I have seen those stackoverflow posts before, and with fetch() the situation is a little clearer, but some headers just don't make sense to remove and others are added at a much later stage so would require a specialized API. We could add such a specialized API, but the demand hasn't been that great, despite the couple Google hits.

from xhr.

annevk avatar annevk commented on June 6, 2024

If you know specifically which headers you want to control and why they are a problem you can file an issue against Fetch and we'll consider addressing it. But we're not going to change the API surface for XMLHttpRequest.

from xhr.

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.