JSS REST API

solomonacquah
New Contributor

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>

0 REPLIES 0