The best way to deal with CORS issues with Swagger UI
You can set CORS filter on your web.xml or on your tomcat’s web.xml, like this. CorsFilter org.apache.catalina.filters.CorsFilter CorsFilter /* However, 1. Your system gets insecure because of this, especially on PROD site where you don’t want someone to invoke your RESTFul services with swagger ui. 2. There may still be CORS javascript bugs in Swagger …
The best way to deal with CORS issues with Swagger UI Read More »