spring-guides / gs-rest-service-cors

Enabling Cross Origin Requests for a RESTful Web Service :: Learn how to create a RESTful web service with Spring that support Cross-Origin Resource Sharing (CORS).

Home Page:https://spring.io/guides/gs/rest-service-cors/

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Cors Filter not working on external Tomcat Container

CodeYogiCo opened this issue · comments

Hi I enabled one of my APIS with @crossorigin annotation.

When I run using spring boot tomcat embedded container it works fine but while deploying the war to an external tomcat container ,it fails.

Any reason why? Morever I am using spring security in my project too

Did you configure the Cors filter on you external container as the first one ?

No response. Assume pilot error (it will work if the filter is declared).