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)

最新文章

  1. Unity中Collider和刚体Collider性能对比
  2. SSAS-many 2 many one simple sample
  3. JavaScript实现在文本框中输入空格时自动填写某个值
  4. css三级下拉的导航栏
  5. Servlet连接数据库
  6. Existence and nonexistence results for anisotropic quasilinear elliptic equations
  7. Divisibility
  8. iOS开发——高级技术&密码锁功能的实现
  9. SQL语句操作文件
  10. AlarmManager类的应用
  11. adb wifi连接手机
  12. ctf中常见注入题源码及脚本分析
  13. 泛型与object
  14. codeforces#1097 D. Makoto and a Blackboard(dp+期望)
  15. gdb pretty printer for STL debug in Linux
  16. NTT模板(无讲解)
  17. 回溯法 leetcode题解 Combination Sum 递归法
  18. 前端网页、php与mysql数据库字符编码(解决中文等乱码问题)
  19. Linux安装pear包
  20. ot

热门文章

  1. Touch Event
  2. MyEclipse for Spring启动时报错"An internal error occurred during: 'Updating indexes'.Java heap space"的解决办法
  3. protobuf-net
  4. LuaInterface简介
  5. 4.3.3版本之引擎bug
  6. ECMASCRIPT 6中字符串的新特性
  7. 在做Android开发的,如何去掉滚动view在尽头时的阴影效果
  8. Spring基础——在Spring Config 文件中配置 Bean
  9. Scrum4.0+5.0 数独游戏
  10. AJAX使用技巧:如何处理书签和翻页按扭