banner
指数爆炸

指数爆炸

我做了对饭 !
github
bilibili

When Nginx performs authentication, it does not check the application-level status codes.

When we use the auth_request directive of nginx for authentication, it does not check the status code of the HTTP response body, it only cares about the status code of the HTTP response


  • Application-level status codes: Status codes encapsulated in Result objects are included in the body of the HTTP response when responding
  • Non-application-level HTTP status codes: Using ResponseEntity objects, where the HTTP status code is part of the HTTP response and is sent separately, before any HTTP response body

Even if the returned Result object contains a "403" status code, the request was actually successful, so the Nginx auth_request directive will still consider the verification successful

Loading...
Ownership of this post data is guaranteed by blockchain and smart contracts to the creator alone.