【发布时间】:2015-09-15 23:18:53
【问题描述】:
我在 Gchrome 控制台中遇到错误
XMLHttpRequest cannot load http://example.com:7070/. No 'Access-Control-Allow-Origin' header is present on the requested resource. Origin 'http://example.com' is therefore not allowed access.
我可以访问 http-bind http://example.com:7070/ 下面是我的
.htaccess 文件
RewriteRule http-bind/ http://example.com:7070/
如何解决这个问题?
【问题讨论】:
标签: apache .htaccess url-rewriting webserver url-redirection