Type Here to Get Search Results !

No 'Access-Control-Allow-Origin' to "--disable-web-security" in Chrome.






If you are facing a problem with "No 'Access-Control-Allow-Origin' header is present on the requested resource." Then the following step helps you.



Step 1:  Find the Chrome browser Icon right click on that open the Properties.




Step 2: In Properties find Target in Shortcut tab and add the text following text at the end.

--disable-web-security --user-data-dir="c:/chromedev"

Whole value become like this ( "C:\Program Files (x86)\Google\Chrome\Application\chrome.exe" --disable-web-security --user-data-dir="c:/chromedev"



Step 4: Open the Chrome browser that is showing the message ( You are using an unsupported command-line falg: --disable-web-security. Stability and security will suffer. ) with a yellowish background. Now you can run your application in this instance of chrome browser without Access-Contorl-Allow-Origin issue.




This problem I facing while using live reload application like an Ionic apps.


Post a Comment

1 Comments
* Please Don't Spam Here. All the Comments are Reviewed by Admin.

Top Post Ad

bogger post ad 1

Below Post Ad

bogger post ad 2

ezoic

Ads Section