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
Percy
Percy2y ago
Project ID: 0d004f84-b6a4-4857-a685-f32898edb084
staringcamprightintheeye
0d004f84-b6a4-4857-a685-f32898edb084
Brody
Brody2y ago
401 means you aren't authorised, spring boot may have an authentication middleware that you probably don't need
staringcamprightintheeye
Thank you, seems to the the problem since I have spring security. Angular part works fine with a vanilla spring project
Brody
Brody2y ago
no problem!
Want results from more Discord servers?
Add your server