I developed SAPUI5 app which use this backend service url:
https://sapes1.sapdevcenter.com/sap/opu/odata/sap/ZGWSAMPLE_SRV/
And to solve the well known issue - CORS (Cross-Origin Resource Sharing):
For local testing the service URL like this:
proxy/https/sapes1.sapdevcenter.com/sap/opu/odata/sap/ZGWSAMPLE_SRV/
Works fine for local testing.
But my question is about Production Tomcat server hosting the SAPUI5 app,
I followed the instruction here:
Apache Tomcat 8 Configuration Reference (8.0.18) - Container Provided Filters
To apply the CorsFilter from tomcat 8 so that I can solve the service url to work.
and added the filter to web.xml file like this:
and changed the service URL in the SAPUI5 App file like this:
and Deployed the SAPUI5 app to the Tomcat 8 server.
But still getting this error:
Any idea how to make the Tomcat CorsFilter work?