Ionic 可以做到无视 CORS 吗 - V2EX
pandada8
·
2015-05-07
·
via Ionic
 |
|
2
pandada8 2015 年 5 月 7 日
@clker Running on a device What happens when you run ionic run? Your files for the app are copied to the device (or simulator). The app runs, thus firing a browser on the phone/simulator to run the files that were copied over, something like: file://some/path/www/index.html. Your origin will not exist, since you are running off of a file:// URI; therefore, any request outwards will not require a CORS request. 然而我没开任何的live reload,在设备上和模拟器都无法发请求
|
此内容由惯性聚合(RSS阅读器)自动聚合整理,仅供阅读参考。 原文来自 — 版权归原作者所有。