Change HTTP code returned for routes rejected in reverse proxy setup

This commit is contained in:
Bubka
2023-11-23 12:49:42 +01:00
parent 39bbc8c134
commit ee02fb5d92
4 changed files with 8 additions and 8 deletions

View File

@ -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
}