adding response header to Jetty config file
5,997
My preference is to add headers in a proxying web server. If you have Apache HTTP infront of your Jetty instance then use the Header
directive.
In answer to the question, to perform this purely in Jetty see setting-http-headers-with-jetty
Related videos on Youtube
![Sam007](https://i.stack.imgur.com/Z4kkc.gif?s=256&g=1)
Author by
Sam007
Updated on September 18, 2022Comments
-
Sam007 almost 2 years
I am trying to add a response header to the Jetty configuration the following command,
Access-Control-Allow-Origin: *
Ok so this Jetty webserver is the base on which Geoserver is running. I asked this question in the GIS forum but no one was able to answer it so I felt I might get the answer here. I wish to add this response to the header to remove the error
Unable to load XMLHttpRequest
I wish to know that under which tags should I wrap this response header and where in the file should I save it.