Cross-domain AJAX calls in Safari and Chrome
Not sure about safari, but Chrome has a command line switch for this:
chrome.exe --disable-web-security
You can view a full list (as of when it was posted!) of command line options for chrome here.
jAndy
Frontend Engineer Public CV: http://careers.stackoverflow.com/jandy Contact: [email protected] Playground: CodePen Remembering that I'll be dead soon, is the most important tool I've ever encountered to help me make the big choices in Life. Because almost everything - all external expectations, all pride, all fear of embarrassment or failure, these things just fall away in the face of death, leaving only what is truly important. Remembering that you are going to die, is the best way I know to avoid the trap of thinking you have something to lose. You are already naked, there is no reason not to follow your heart. -- Steve Jobs
Updated on June 16, 2022Comments
-
jAndy almost 2 years
Firefox and Internet Explorer both have settings where a user may enable forbidden cross-domain calls.
Is there a similar setting or option in Safari and/or Chrome?
-
Peter Hanley almost 12 yearsThis is one of my biggest complaints about the webkit browsers - the 'all or nothing' security preferences. Is it that hard to write 'disable-web-security-for-trusted-domains'?
-
keinabel over 11 yearsif you need authentication you would also need to use this parameter: --allow-cross-origin-auth-prompt otherwise it will fail as if web security is still enabled