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

2020-01-24 20:18:55 +08:00
 canxun

有偿

2019 次点击
所在节点    Chrome
4 条回复
codehz
2020-01-24 20:33:35 +08:00
本地调试用 Electron 关闭所有安全机制就可以
li02
2020-01-24 21:40:13 +08:00
superrichman
2020-01-24 22:54:04 +08:00
跑个 nginx,简单点就把把 json 文件放到 nginx 的 html 文件夹里就能用 http://127.0.0.1/waifs-tips.json 访问,复杂点就要自己改 nginx 配置 location
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

这是一个专为移动设备优化的页面(即为了让你能够在 Google 搜索结果里秒开这个页面),如果你希望参与 V2EX 社区的讨论,你可以继续到 V2EX 上打开本讨论主题的完整版本。

https://www.v2ex.com/t/640188

V2EX 是创意工作者们的社区,是一个分享自己正在做的有趣事物、交流想法,可以遇见新朋友甚至新机会的地方。

V2EX is a community of developers, designers and creative people.

© 2021 V2EX