scriptsharp icon indicating copy to clipboard operation
scriptsharp copied to clipboard

jQuery.support.cors not supported

Open aschoenebeck opened this issue 12 years ago • 1 comments

Hello,

please support the jQuery setting jQuery.support.cors (see http://api.jquery.com/jQuery.support). I need this to force Cross Domain Calls on certain IE browsers.

Cheers Andreas

Edit: Current workaround is Script.Eval("jQuery.support.cors = true;");

aschoenebeck avatar Nov 08 '12 11:11 aschoenebeck

Better workaround:

Script.SetField(jQuery.Support, "cors", true)

Almost, never (pretty much a rule with very few exceptions) use Script.Eval. Even if you have to use Script.Eval, consider Script.Literal instead.

And finally, even better, make a change to the jQuery assembly to add the member, so you don't have to resort to late-bound code, and then submit a pull request.

nikhilk avatar Nov 09 '12 03:11 nikhilk