Comments (2)
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.
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)
- Syntax error
- IE9 XDomainRequest content-type headers possible? HOT 1
- Conflicts when not using json dataType HOT 3
- Unexpected character at <!DOCTYPE> HOT 2
- Release Tag HOT 1
- Success callback being called twice ? HOT 1
- Version 0.1.0 or 0.3.0? HOT 1
- Not available on npm. HOT 1
- Setting X-HTTP-Method-Override doesn't really work HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from backbone.crossdomain.