MarkLogic HTTP Server: Configuring CORS Headers

I run MarkLogic 7on CentOS 6.5 box. I have an application HTML/JShosted on a MarkLogic HTTP server on the same machine. The application runs on port 8003 and it needs to access data through REST API, running on another port 8007. When I use the request AJAXin my application, I get an error message

No 'Access-Control-Allow-Origin' header is present on the requested resource. Origin 'http://172.16.100.104:8003' is therefore not allowed access.  

Has anyone set up MarkLogicfor CORSbefore? Any help would be great.

+4
source share

Source: https://habr.com/ru/post/1544957/


All Articles