My code and question are exactly This.
But I am getting the error like
Access to XMLHttpRequest at 'http://localhost:8080/api/v1/basicauth' from origin 'http://localhost:4200' has been blocked by CORS policy: Response to preflight request doesn't pass access control check: No 'Access-Control-Allow-Origin' header is present on the requested resource.
zone-evergreen.js:2828
GET http://localhost:8080/api/v1/basicauth net::ERR_FAILED
I have followed the same instruction in the accepted answer still I am getting the same error.
I have added the doFilter method in my SpringSecurityConfig
class. Still, I am getting the same error.
I am getting the below error in the network.
http://localhost:8080/api/v1/basicauth if I hit this URL I am getting 404 error
from eclipse I am running debug mode, it is not showing any debug point enables, what might be the issue.
Can you help me fix and understand that kind of problem? Thanks! :)