Friday, January 2, 2015

Enable browser cross domain request on Chrome and IE

When testing javascript, sometimes it is helpful to enable cross domain request on browser. This can be done on Chrome and IE

Chrome
1. When starting chrome from command line, add the parameter of "--disable-web-security".
Note you may find it does not work. That is because there are some chrome process already running. Some processes will keep running even if you close all chrome browser. Be sure to kill all chrome process from windows task manager, and then start Chrome with this parameter.
Once it is enabled, the browser will show a warning message saying the security is suffered.

IE
Open tools/Internet Option menu, select security tab, click on Custom level button. From settings, enable "Access data source across domains"


1 comment:

  1. Your blogs are great.Are you also searching for Nursing term paper help? we are the best solution for you. We are best known for delivering great term paper services :+1-(951)-468-9855

    ReplyDelete