V2EX = way to explore
V2EX 是一个关于分享和探索的地方
现在注册
已注册用户请  登录
Get Google Chrome
Vimium · 在 Chrome 里使用 vim 快捷键
binarymann
V2EX  ›  Chrome

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

  •  
  •   binarymann · 2015-03-24 16:04:17 +08:00 · 2642 次点击
    这是一个创建于 3328 天前的主题,其中的信息可能已经有所发展或是发生改变。
    因为开发需要我要跨域加载一些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 条回复    2015-03-24 16:43:33 +08:00
    airyland
        1
    airyland  
       2015-03-24 16:11:20 +08:00
    加载js文件为什么会有跨域问题?还是说你在https页面要加载http的js文件?
    imt
        2
    imt  
       2015-03-24 16:16:48 +08:00
    我懂你要干嘛...
    我42的可以呀
    open -a Google\ Chrome --args --disable-web-security
    binarymann
        3
    binarymann  
    OP
       2015-03-24 16:36:07 +08:00
    @airyland 嗯,我要用绝对路径加载一个本地的js文件,如果那个js文件是在本项目目录下相对引用的确不存在跨域加载的问题
    binarymann
        4
    binarymann  
    OP
       2015-03-24 16:43:33 +08:00
    @imt 好像果然是我chrome的问题,我下载了个portable的版本就行了...
    关于   ·   帮助文档   ·   博客   ·   API   ·   FAQ   ·   我们的愿景   ·   实用小工具   ·   2428 人在线   最高记录 6543   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 36ms · UTC 13:35 · PVG 21:35 · LAX 06:35 · JFK 09:35
    Developed with CodeLauncher
    ♥ Do have faith in what you're doing.