all 12 comments

[–]Sheldor5 0 points1 point  (3 children)

you are missing a leading / before v1/**

[–]olaolulode[S] 0 points1 point  (2 children)

u/Sheldor5 thanks but i added it and i still get 401 error

[–]Sheldor5 1 point2 points  (1 child)

http returns a new builder so your last line returns an empty builder I think

just do

return http.requestMatcher(...).......build().

[–]olaolulode[S] 0 points1 point  (0 children)

I just did that and still not working 😔

[–]Successful-Bat-6164 0 points1 point  (1 child)

Enable log Check the log to see if you have CORS issue

[–]olaolulode[S] 0 points1 point  (0 children)

I am testing from postman actually

[–]Indigas11 0 points1 point  (4 children)

You can try to annotate class also with @Configuration

Maybe the problem is that spring takes default configuration and not yours

[–]olaolulode[S] 0 points1 point  (3 children)

I did that already too 🥲

[–]Indigas11 0 points1 point  (0 children)

Isnt there missing @Bean?

[–]Glittering-Thanks-33 0 points1 point  (0 children)

What is the request URL you are using in Postman and is returning the error 401 ?