GithubHelp home page GithubHelp logo

Comments (2)

victorquinn avatar victorquinn commented on May 27, 2024

Hey aroc,

Thanks for the kind words.

The intent there was to defer to jQuery.support.cors to figure out whether a particular browser would support cors. This should be true for most modern browsers and false for IE7/8/9 (and any other browser that doesn't support cors of course).

It's not intended to be set, only read, it's a result of jQuery's internal test to see whether a given browser supports cors. See: http://vq.io/12fvcQj

$.support.cors contains the result of a test that tests whether or not the current browser supports cors. changing it doesn't make the browser support cors.

If the browser does not support cors, then my library tries to use IE's XDomainRequest object to make the cors request. Setting it to true is just overriding that check within jQuery so it always returns true which is bound to have some funny side effects.

So I'm a bit confused at how setting it is making things work for you. The only result in doing so would be to bypass use of IE's magic cross domain request object in my library, thereby making any cross domain requests on IE fail.

In any event, if you can give me a bit more info, a code snippet, or a pull request I can look into this, otherwise it sounds like you probably want to check a bit more about your IE support as I suspect it's probably not working as expected.

from backbone.crossdomain.

aroc avatar aroc commented on May 27, 2024

Hey @victorquinn - you're absolutely right about the $.support.cors thing. I still remained unable to get this plugin working without it, so I switched to using this project: https://github.com/MoonScript/jQuery-ajaxTransport-XDomainRequest

from backbone.crossdomain.

Related Issues (10)

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.