All Questions
3 questions
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;
...
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....
-2
votes
1
answer
2k
views
No 'Access-Control-Allow-Origin' header Vue/Spring boot
I can't seem to figure out this error "No 'Access-Control-Allow-Origin' header".
I have a Vue frontend running on localhost:8080 and spring backend generating JWT tokens on locahost:8082
While ...