Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
[jetty-users] Jetty context.xml overrideDescriptor not working for CORS


I have been trying to enable CORS on a jetty server using overrideDescriptor tag in context.xml. The override-web.xml is as follows:

        <param-value>origin, content-type, accept</param-value>
I have added the following line in my jetty-context.xml
<Set name="overrideDescriptor">/path/to/override-web.xm</Set>
When Jetty is started i can see in the Debug logs that CrossOriginFilter is initialised properly. But i am still getting No 'Access-Control-Allow-Origin' header is present on the requested resource. I don't know why is this happening. 
Can someone suggest the reason or how to fix this? Can the original web.xml interfere with the overrideDescriptor?
Any help is appreciated.

Back to the top