mirror of
https://gitlab.com/MoonTestUse1/AdministrationItDepartmens.git
synced 2025-08-14 00:25:46 +02:00
прор222в2в
This commit is contained in:
@@ -21,6 +21,7 @@ server {
|
|||||||
|
|
||||||
# API proxy
|
# API proxy
|
||||||
location /api/ {
|
location /api/ {
|
||||||
|
rewrite ^/api/(.*) /$1 break;
|
||||||
proxy_pass http://backend_upstream;
|
proxy_pass http://backend_upstream;
|
||||||
proxy_http_version 1.1;
|
proxy_http_version 1.1;
|
||||||
proxy_set_header Upgrade $http_upgrade;
|
proxy_set_header Upgrade $http_upgrade;
|
||||||
|
|||||||
@@ -103,7 +103,7 @@ const handleLogin = async () => {
|
|||||||
|
|
||||||
const response = await axios.post('/api/auth/admin/login', formData, {
|
const response = await axios.post('/api/auth/admin/login', formData, {
|
||||||
headers: {
|
headers: {
|
||||||
'Content-Type': 'multipart/form-data'
|
'Content-Type': 'application/x-www-form-urlencoded'
|
||||||
}
|
}
|
||||||
})
|
})
|
||||||
console.log('Ответ от сервера:', response.data)
|
console.log('Ответ от сервера:', response.data)
|
||||||
|
|||||||
Reference in New Issue
Block a user