localhost :: cross domain ajax

It’s very possible. Let’s start with a dev browser.

Step 1: Download Chromium

Windows — http://www.chromium.org/getting-involved/download-chromium

Mac — http://www.macupdate.com/app/mac/36244/chromium/

There should be a build ready to go, but these locations change over time. So if these end up with 404’s do a Google search for Windows Chromium Download and you’ll find it.

Step 2: Then run the executable with this flag after it. --disable-web-security

Windows — Create a shortcut to the executable and tag this in the Properties. Or run from [CMD].

Mac — Open up a terminal and run this straight from there with the flag.

And, you should be good to go. I also setup a quick Apache service and run through a 127.0.0.1 configured domain, but localhost should be just fine. Here’s proof.

Cross-domain security block disabled

I hope this helps you!

Leave a Comment