Swagger 2 is not launching. Keep getting 401 Unauthorized error
I can't launch swagger on my
http://localhost:8080/swagger-ui/
. Web browser shows that the page isn't working and writes 401 error:
I'm using Spring Boot v3.0.5. And Spring Security 6.0.2.
Dependencies:
3 Replies
⌛
This post has been reserved for your question.
Hey @Tomasm21! Please useTIP: Narrow down your issue to simple and precise questions to maximize the chance that others will reply in here./close
or theClose Post
button above when your problem is solved. Please remember to follow the help guidelines. This post will be automatically closed after 300 minutes of inactivity.
I'm sure Spring Security is blocking it.
I was trying to find solution on the Internet and most sources mention to add URIs as permitted request matchers:
But it all doesn't help.
Maybe anyone of you knows what to do? How to make Swagger available through Spring Security?
💤
Post marked as dormant
This post has been inactive for over 300 minutes, thus, it has been archived.
If your question was not answered yet, feel free to re-open this post or create a new one.
In case your post is not getting any attention, you can try to use /help ping
.
Warning: abusing this will result in moderative actions taken against you.