Disabling cross-domain security check for AJAX development in Google Chrome

This tip is for those who need to test Javascript / HTML5 web application functionality against a production server from their local HTML and Javascript files (not localhost).

Start Google Chrome with no security from command lin, OSX:

/Applications/Google\ Chrome.app/Contents/MacOS/Google\ Chrome --disable-web-security

Start Google Chrome from command line, Ubuntu/Linux:

chromium-browser --disable-web-security
After this cross-domain AJAX requests work.

\"\" Subscribe to RSS feed Follow me on Twitter Follow me on Facebook Follow me Google+

8 thoughts on “Disabling cross-domain security check for AJAX development in Google Chrome

  1. awesome and let me give for windows dude

  2. How do i run firefox by disable the cross domain in ubuntu ?

  3. Isn’t it possible to allow just a limited set of domains?

  4. Could you please tell us that how to use this command in Javascript

Leave a Reply

Your email address will not be published. Required fields are marked *