Apache Solr: Setting HTTP Response Headers From solrconfig.xml For CORS

Posted by Noah Freitas on Stack Overflow See other posts from Stack Overflow or by Noah Freitas
Published on 2012-06-08T16:36:39Z Indexed on 2012/06/08 16:40 UTC
Read the original article Hit count: 819

Filed under:
|
|
|

Is it possible to setup the sending of a custom HTTP response header from within the solrconfig.xml file? I am thinking that it might be possible to add some configuration to the <requestDispatcher> since it controls caching headers.

I am sure this is possible in the servlet container configuration (Jetty, Tomcat, etc.), but I would like to do this from within Solr's configuration files if at all possible.

If this makes any difference, I am attempting to set an Access-Control-Allow-Origin header for CORS AJAX requests for a different host.

© Stack Overflow or respective owner

Related posts about AJAX

Related posts about solr