I am trying to access some local files via jqueryMobile, it works fine in Firefox and IE but Chrome gives a security exception. I can open Chrome in disabled security mode t
Now it's
--disable-web-security --user-data-dir="c:/someFolderName"
For Ubuntu,
google-chrome --args --disable-web-security --user-data-dir="Path_To_Project_Directory"
Goto window search type Run
then on the run popup
just paste "chrome.exe --user-data-dir="C:/Chrome dev session" --disable-web-security
"
and ok || worked for me :)
For Windows10
:
"C:\Program Files (x86)\Google\Chrome\Application\chrome.exe" --disable-web-security --user-data-dir="C:\temp"
Why don't you try with Safari browser? It is simple to disable web security over there.
Simply click on
Develop > Disable Cross-Origin Restrictions
in the menu bar.
In order to get Develop menu, do the following:
Preferences > Advanced > Show Develop menu in menu bar.
just a quick update, now you need not only --disable-web-security but --user-data-dir
to sum it up:
"C:\Program Files (x86)\Google\Chrome\Application\chrome.exe" --disable-web-security --user-data-dir