我正在使用http-bindopenfire 来启用BOSH和访问该服务strophe,问题是我在 chrome 中遇到以下错误
这是控制台中的错误
XMLHttpRequest 无法加载
http://127.0.0.1/http-bind。请求的资源上不存在“Access-Control-Allow-Origin”标头。'http://localhost'因此不允许Origin访问。

这是请求

我BOSH在openfire中启用如下
我尝试在apache配置文件中执行以下操作httpd.conf但没有效果
<Proxy /http-bind>
Order allow,deny
Allow from all
</Proxy>
ProxyPass /http-bind http://127.0.0.1:7070/http-bind
ProxyPassReverse /http-bind http://127.0.0.1:7070/http-bind