79554210

Date: 2025-04-04 00:08:39
Score: 1
Natty:
Report link

I found a way to solve it.

I permitted all requests to come in, in the security configuration class. Then annotated all the methods by @PreAuthorize("isAuthenticated()") which need to be protected. Then the method that should be accessible without authentication , left it without adding the mentioned annotation.

Reasons:
  • Has code block (-0.5):
  • Self-answer (0.5):
  • Low reputation (1):
Posted by: kake.38