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

这种跨域咋解决 就本地调试需要 如下图

  •  
  •   canxun · 2020-01-24 20:18:55 +08:00 · 1994 次点击
    这是一个创建于 1524 天前的主题,其中的信息可能已经有所发展或是发生改变。

    有偿

    codehz
        1
    codehz  
       2020-01-24 20:33:35 +08:00 via Android
    本地调试用 Electron 关闭所有安全机制就可以
    li02
        2
    li02  
       2020-01-24 21:40:13 +08:00
    superrichman
        3
    superrichman  
       2020-01-24 22:54:04 +08:00 via iPhone
    跑个 nginx,简单点就把把 json 文件放到 nginx 的 html 文件夹里就能用 http://127.0.0.1/waifs-tips.json 访问,复杂点就要自己改 nginx 配置 location
    llb123
        4
    llb123  
       2020-01-25 00:26:27 +08:00
    "C:\Users\UserName\AppData\Local\Google\Chrome\Application\chrome.exe" --disable-web-security --user-data-dir
    关于   ·   帮助文档   ·   博客   ·   API   ·   FAQ   ·   我们的愿景   ·   实用小工具   ·   4950 人在线   最高记录 6543   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 28ms · UTC 09:49 · PVG 17:49 · LAX 02:49 · JFK 05:49
    Developed with CodeLauncher
    ♥ Do have faith in what you're doing.