Get Google Chrome
Vimium · 在 Chrome 里使用 vim 快捷键
binarymann
V2EX  ›  Chrome

Version 41.0.2272.101 中已不能--disable-web-security 了吗?

  •  
  •   binarymann · Mar 24, 2015 · 3207 views
    This topic created in 4067 days ago, the information mentioned may be changed or developed.
    因为开发需要我要跨域加载一些js文件,之前都是在chrome快捷方程式target属性上加入--disable-web-security,但升级了chrome后好像不能用了?想换firefox但好像ff无论怎么改就是不能--disable-web-security

    "C:\Program Files (x86)\Google\Chrome\Application\chrome.exe" --allow-file-access-from-files --disable-web-security
    4 replies    2015-03-24 16:43:33 +08:00
    airyland
        1
    airyland  
       Mar 24, 2015
    加载js文件为什么会有跨域问题?还是说你在https页面要加载http的js文件?
    imt
        2
    imt  
       Mar 24, 2015
    我懂你要干嘛...
    我42的可以呀
    open -a Google\ Chrome --args --disable-web-security
    binarymann
        3
    binarymann  
    OP
       Mar 24, 2015
    @airyland 嗯,我要用绝对路径加载一个本地的js文件,如果那个js文件是在本项目目录下相对引用的确不存在跨域加载的问题
    binarymann
        4
    binarymann  
    OP
       Mar 24, 2015
    @imt 好像果然是我chrome的问题,我下载了个portable的版本就行了...
    About   ·   Help   ·   Advertise   ·   Blog   ·   API   ·   FAQ   ·   Solana   ·   3273 Online   Highest 6679   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 27ms · UTC 14:11 · PVG 22:11 · LAX 07:11 · JFK 10:11
    ♥ Do have faith in what you're doing.