如何启用CORS在道场连接到的Openfire [英] how to enable CORS in dojo to connect to Openfire

查看:281
本文介绍了如何启用CORS在道场连接到的Openfire的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我在道场UI使用的strophe我连接在Apache Tomcat服务器到Openfire的工作。我得到以下CORS错误XMLHtt $ P $用于HTTPS pquest://:7443 / HTTP绑定/需要跨源资源共享(CORS)。

I am working on a dojo ui using strophe I am connecting to openfire in the apache tomcat server. I get the following CORS error " XMLHttpRequest for https://:7443/http-bind/ required Cross Origin Resource Sharing (CORS). "

如何启用使用道场或Apache Tomcat上这还是我应该做的strophe一些改变任何想法?

Any idea of how to enable this using dojo or in apache tomcat or should I do some changes in strophe?

推荐答案

我做了让打电话之前后,事情开始为我工作。

I did the get call before the post and things started working for me.

这篇关于如何启用CORS在道场连接到的Openfire的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆