11/27/2023 0 Comments Postman app not launchingYou can specify a particular domain in your Spring application, so that you're not defeating the CORS measures altogether, but this can make your application structure brittle if you have plan to add more hosts to utilize this service in the future. One solution to this would be to open up your /login backend, like others have suggested, to allow request from all domains with a wildcard. Sorry if this something really simple, as I mentioned I'm very new to Spring in general. This is the angular service from which I send the request:Īnd this is the error in the web browser: This is my spring security configuration: So as the title says, calling my endpoint '/login' from postman with the creds on the body, works correctly and gives me back the token, but making the same request (apparently, probably it isn't) from angular it gets blocked by CORS. I was trying to create a login and learn about the auth workflow in general. I want to create a simple web app to test stuff. I've been working as a front-end developer for about a year, but lately I wanted to get more into back-end as well so I did follow this course about Springboot and this one about Spring security.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |