taoCMS是基于php+sqlite/mysql的国内最小(100Kb左右)的功能完善的CMS管理系统

MAC下如何使用chrome进行跨域调用

2014-03-12

When I try to test one web app in coperate intranet, there is always some error like "Failed to load resource: Origin http://localhost:60923 is not allowed by Access-Control-Allow-Origin." And it can be solved via add the response header with "Access-Control-Allow-Origin:*" from server side.

But if you have no access to the web server, you can set your client browser to bypass Web Security checks. 

And on a Windows PC you can copy the Chrome shortcut and add in the launch properties with "-disable-web-security". Or use command to run "Chrome.exe --disable-web-security".

But on Mac you can not copy the exe and only way is to launch it via command line. The right way to launch it is: open -a Google Chrome --args --disable-web-security

(End)

Raymond Zhang
If you want to discuss with me about any idea, please contact me at raymond.zhang@sap.com

类别:技术文章 | 阅读:188517 | 评论:0 | 标签:mac chrome 跨域

想收藏或者和大家分享这篇好文章→

“MAC下如何使用chrome进行跨域调用”共有0条留言

发表评论

姓名:

邮箱:

网址:

验证码:

公告

taoCMS发布taoCMS 3.0.2(最后更新21年03月15日),请大家速速升级,欢迎大家试用和提出您宝贵的意见建议。

捐助与联系

☟请使用新浪微博联系我☟

☟在github上follow我☟

标签云