Skip to content

CORS

Learn

How to set up CORS in Jetty

http://www.eclipse.org/jetty/documentation/current/cross-origin-filter.html, requires jetty-servlets.

The CrossOriginFilter should be configured on the backend server which expose the JSON over http APIs. In a scenario with a separate deployment unit which serves the frontend, only the backend server needs the CORS setup.

pom.xml
web.xml

Other resources