Ibm mobilefirst 跨域错误Worklight适配器请求

Ibm mobilefirst 跨域错误Worklight适配器请求,ibm-mobilefirst,worklight-adapters,worklight-server,Ibm Mobilefirst,Worklight Adapters,Worklight Server,我正在尝试从iPhone应用程序(基于Worklight构建)向远程服务器上的远程Worklight适配器发出GET请求。 我使用以下命令生成了授权请求头 http://remote-url:port/project/authorization/v1/testtoken 但是,我不断收到以下跨域错误: XMLHttpRequest cannot load https://remote-url/project/adapters/call/mq/getAccounts/22. Response t

我正在尝试从iPhone应用程序(基于Worklight构建)向远程服务器上的远程Worklight适配器发出
GET
请求。 我使用以下命令生成了授权请求头

http://remote-url:port/project/authorization/v1/testtoken
但是,我不断收到以下跨域错误:

XMLHttpRequest cannot load https://remote-url/project/adapters/call/mq/getAccounts/22. Response to preflight request doesn't pass access control check: No 'Access-Control-Allow-Origin' header is present on the requested resource. Origin 'http://myapp-url:port' is therefore not allowed access.

但是,当我尝试使用Postman之类的API工具执行相同的
GET
请求时,我收到的结果在浏览器上没有问题。

First-testtoken仅在MobileFirst Studio开发环境中可用。。。你需要考虑到这一点

其次,默认情况下,您可能使用Chrome和Crome不允许CORS。更改浏览器设置和/或尝试使用其他浏览器