modified: main_dc/nginx/nginx-ssl.conf

modified:   main_dc/yalarba/easySite/easySite/app/pages/auth/register.vue
delete cors settings from nginx
This commit is contained in:
2025-11-14 05:04:42 +05:00
parent b324349b03
commit e5723490d4
2 changed files with 2 additions and 6 deletions
-5
View File
@@ -138,11 +138,6 @@ server {
proxy_send_timeout 600;
proxy_read_timeout 600;
# CORS headers
add_header Access-Control-Allow-Origin "*";
add_header Access-Control-Allow-Methods "GET, POST, PUT, DELETE, OPTIONS";
add_header Access-Control-Allow-Headers "Content-Type, Authorization";
# Handle preflight requests
if ($request_method = OPTIONS) {
return 204;
@@ -109,7 +109,8 @@ const handleSubmit = async () => {
}
})
console.debug("response from fetch: %s", response)
console.log("response from fetch: %s", response)
// Успешная регистрация
alert('Регистрация выполнена успешно!')