Skip to main content
Question

JSS REST API

  • January 15, 2014
  • 0 replies
  • 3 views

Forum|alt.badge.img+4

Does the web.xml file in Tomcat have to be modified in order to allow cross domain GET REQUESTS to the JSS?

Been reading up and potentially below May be needed.

For example, here is a web.xml snippet to allow CORS requests from the http://example.com origin only:

<filter> <filter-name>CORS</filter-name> <filter-class>com.thetransactioncompany.cors.CORSFilter</filter-class>

<init-param> <param-name>cors.allowOrigin</param-name> <param-value>http://example.com</param-value> </init-param>
</filter>