【发布时间】:2014-08-07 20:04:17
【问题描述】:
我在CentOS 6.5 box 上运行MarkLogic 7。我的HTML/JS 应用程序托管在同一台机器上的 MarkLogic HTTP 服务器上。该应用程序在端口 8003 上运行,并且需要通过在不同端口 8007 上运行的 REST API 访问数据。当我在应用程序中使用 AJAX 请求时,我收到一个错误提示
No 'Access-Control-Allow-Origin' header is present on the requested resource. Origin 'http://172.16.100.104:8003' is therefore not allowed access.
之前有人为CORS 设置过MarkLogic 吗?任何帮助都会很棒。
【问题讨论】:
标签: ajax cors marklogic web-development-server