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+
Thanks very much! This helped me a lot to make simple tests on my Mac without needing to use my site code to do it
Also use
–allow-file-access-from-files
http://peter.sh/experiments/chromium-command-line-switches/
It works very well!
awesome and let me give for windows dude
How do i run firefox by disable the cross domain in ubuntu ?
Isn’t it possible to allow just a limited set of domains?
For limited set of domains set up domains properly to use CORS HTTP headers.
Could you please tell us that how to use this command in Javascript