mirror of
https://github.com/Bubka/2FAuth.git
synced 2025-08-09 05:54:34 +02:00
Change HTTP code returned for routes rejected in reverse proxy setup
This commit is contained in:
@ -94,8 +94,8 @@
|
||||
credentials.value = response.data
|
||||
})
|
||||
.catch(error => {
|
||||
if( error.response.status === 400 ) {
|
||||
// The backend returns a 400 response for routes with the
|
||||
if( error.response.status === 405 ) {
|
||||
// The backend returns a 405 response for routes with the
|
||||
// rejectIfReverseProxy middleware
|
||||
isRemoteUser.value = true
|
||||
}
|
||||
|
Reference in New Issue
Block a user