Coder Social home page Coder Social logo

superagent-legacyiesupport's People

Contributors

grrowl avatar nivoc avatar trreeves avatar wimpyprogrammer avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar

superagent-legacyiesupport's Issues

superagent-legacyIESupport.js has been saved as UTF-8 with BOM

I've noticed that superagent-legacyIESupport.js has been saved as UTF-8 with BOM. (byte order marker)

When I build my project with Webpack (without minification enabled) the script throws an error "Invalid or unexpected token" at the start of the superagent-legacyIESupport bundle.

Note: this does not happen when Webpack minification is enabled as the minification strips out all unnecessary whitespace.

Object parameters in JSON requests are improperly serialized

I encountered a problem when making a cross-domain POST in IE9 when one of the query parameters in an Object. The request looks like:

request
    .post('remote-url')
    .send({
        string: 'foo',
        number: 10,
        object: { someProp: true }
    })
    .use(superagent-legacyIESupport)

The resulting request looks like string=foo&number=10&object=%5Bobject%20Object%5D.

I'll submit a pull request with the changes I made to fix this.

How should IE10 be handled?

Thanks for this great superagent plugin!

I had trouble getting a CORS POST to work in IE10 until I disabled this plugin. No Content-Type was sent so the server errored with 415 Unsupported Media Type. I started looking through the plugin code to investigate.

I see several mentions of shimming IE8 and IE9, but is this plugin also meant to affect IE10? That version seems to support CORS with XMLHttpRequest.

Browser/OS "withCredentials" in (new XMLHttpRequest())
IE 8 / Win7
IE 9 / Win7
IE 10 / Win7
IE 10 / Win8
IE 11 / Win7

Should the check for typeof XDomainRequest !== "undefined" be amended to typeof XDomainRequest !== "undefined" && !("withCredentials" in (new XMLHttpRequest())) ?

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.