【发布时间】:2018-03-07 07:41:00
【问题描述】:
我的名字是 Mitesh Jain, 我是 Unomi 的新手。
所有的安装都是按照这个链接完成的:
http://unomi.incubator.apache.org/
当我尝试访问其余 api cxs 以获取所有规则时,当我浏览时它在浏览器中正确显示, https://localhost:9443/cxs/rules
但是当我尝试使用我的 Angular 应用程序访问相同的内容以使用上面的 url 获取规则时,https://localhost:9443/cxs/rules 它将进行 OPTIONS 调用,并且我收到错误为“No 'Access-Control-Allow-Origin'请求的资源上存在标头。”
在这里休息 API 文档:http://unomi.incubator.apache.org/rest-api-doc/index.html#-1505954579
请告诉我如何解决这个 CORS 问题。
【问题讨论】:
标签: cxf apache-karaf karaf