-
Notifications
You must be signed in to change notification settings - Fork 563
Investigate issues in CORS support on Spring Framework 5.2 [DATAREST-1372] #1732
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Comments
Sébastien Deleuze commented I have added related guidelines in Spring Framework wiki |
Oliver Drotbohm commented mraible – Would you mind re-elaborating why you think this has to do with CORS? If I follow your instructions on the Boot ticket, I get the following exception:
To me this looks like the client is not sending the data completely |
mraible commented I think it's a CORS issue because my browser's console shows: Access to XMLHttpRequest at 'http://localhost:8080/cars/4' from origin 'http://localhost:4200' has been blocked by CORS policy: No 'Access-Control-Allow-Origin' header is present on the requested resource. If I change my pom.xml to use <version>2.1.4.RELEASE</version> instead of 2.2.0.M2, everything works. To make it work with 2.2.0.M2, I need to add a CorsFilter bean.
|
What's the current situation with Data REST's CORS support? A Spring Boot user is seeing a quite similar problem that can also be worked around with a |
We tried to stay up to date with the ongoing changes in Spring Framework in #1756 (DATAREST-1397), #1891 (DATAREST-1535), #1940 (DATAREST-1581). I am not aware of anything not working out of the box beyond those. I'll comment on the original ticket you linked to to see if we can find out more details. |
Oliver Drotbohm opened DATAREST-1372 and commented
See the reference URL for details
Reference URL: spring-projects/spring-boot#16683
The text was updated successfully, but these errors were encountered: