Error 401 while browsing the pages, while calling the backend works
Hi there, I’m having an issue trying to get the angular frontend part to work. I’ve deployed it with springboot using ng build and I’m able to call the api from my localhost and from postman, but browsing the pages that is not part of the backend gives me error 401. Both parts work fine on localhost separately. Thanks!
5 Replies
Project ID:
0d004f84-b6a4-4857-a685-f32898edb084
0d004f84-b6a4-4857-a685-f32898edb084
401 means you aren't authorised, spring boot may have an authentication middleware that you probably don't need
Thank you, seems to the the problem since I have spring security. Angular part works fine with a vanilla spring project
no problem!