Creating Google Chrome shortcut with --disable-web-security

后端 未结 12 1150
南方客
南方客 2020-11-30 12:10

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

相关标签:
12条回答
  • 2020-11-30 12:58

    Now it's

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

    0 讨论(0)
  • 2020-11-30 13:00

    For Ubuntu,

    google-chrome --args --disable-web-security --user-data-dir="Path_To_Project_Directory"
    
    0 讨论(0)
  • 2020-11-30 13:01

    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 :)

    0 讨论(0)
  • 2020-11-30 13:03

    For Windows10:

    "C:\Program Files (x86)\Google\Chrome\Application\chrome.exe" --disable-web-security --user-data-dir="C:\temp"
    
    0 讨论(0)
  • 2020-11-30 13:04

    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.
    
    0 讨论(0)
  • 2020-11-30 13:12

    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

    0 讨论(0)
提交回复
热议问题