我正在使用 Icenium 开发本机应用程序。目前刚刚使用 icenium (www.icenium.com) 构建了一个示例混合应用程序,以使用 jQuery ajax 调用 API,但仍然收到一些错误说“可能的 CORS 错误!” 在爱琴海。
我已经阅读了如何实现 CORS 标头以允许跨域 ajax,但似乎它仍然无法在通过 icenium 构建的本机应用程序中运行。
这是我的响应标题:
Content-Length: 76
X-Xss-Protection: 1; mode=block
Content-Language: en
X-Content-Type-Options: nosniff
Status_code: 200
Vary: Accept-Language, Cookie
Allow: GET, POST
Date: Sun, 01 Dec 2013 07:41:33 GMT
Access-Control-Allow-Origin: *
Access-Control-Allow-Headers: Content-Type
Content-Type: application/json
X-Frame-Options: SAMEORIGIN
有没有人看到任何问题?