r/javahelp • u/Afraid-Tower619 • Aug 08 '25
Giving 401 unauthorized access error
https://github.com/Suryanshtiwari2005/JwtAuthDemo/tree/master
I am trying to learn Authentication using SpringBoot but i am currently stuck when i call
http://localhost:8080/tasks
it's giving 401 unauthorized error i have tried using ai's help couldn't solve it if somebody could provide me a solution for this error it would be really appriciated
1
Upvotes
View all comments
Show parent comment
1
u/Afraid-Tower619 Aug 09 '25
Bro it's solved i debugged and the real issue was that while sending request I was sending an extra line with url that was why spring security was blocking url cause it looked suspicious and thanks for the help 😊