Skip to main content

All Questions

Filter by
Sorted by
Tagged with
0 votes
1 answer
280 views

Unable to control Cross origin request even after specifying Access-Control-Allow-Origin header inside filter of Springboot application

I added the following filter code to my project - package com.package; import java.io.IOException; import javax.servlet.Filter; import javax.servlet.FilterChain; import javax.servlet.FilterConfig; ...
Sandeepan Nath's user avatar
0 votes
0 answers
1k views

Cross Origin whitelisted IP is not applying even after defining using @CrossOrigin annotation on Springboot project

I followed https://spring.io/guides/gs/rest-service-cors/ and added a random IP like this, to one of my API end points - @Produces(MediaType.APPLICATION_JSON) @CrossOrigin(origins = "116.206.111....
Sandeepan Nath's user avatar