1
0
mirror of https://gitlab.com/MoonTestUse1/AdministrationItDepartmens.git synced 2025-08-14 00:25:46 +02:00

прор222в2в

This commit is contained in:
MoonTestUse1
2025-01-04 04:25:41 +06:00
parent 162a031cd9
commit f343007b96
2 changed files with 2 additions and 1 deletions

View File

@@ -21,6 +21,7 @@ server {
# API proxy
location /api/ {
rewrite ^/api/(.*) /$1 break;
proxy_pass http://backend_upstream;
proxy_http_version 1.1;
proxy_set_header Upgrade $http_upgrade;

View File

@@ -103,7 +103,7 @@ const handleLogin = async () => {
const response = await axios.post('/api/auth/admin/login', formData, {
headers: {
'Content-Type': 'multipart/form-data'
'Content-Type': 'application/x-www-form-urlencoded'
}
})
console.log('Ответ от сервера:', response.data)