production and staging(development)

This commit is contained in:
2026-04-28 11:44:05 +03:00
parent 2406e68981
commit 2133cd830f
5 changed files with 12 additions and 7 deletions
@@ -160,7 +160,7 @@ public class WebSecurityConfig implements WebMvcConfigurer {// extends WebSecuri
registry.addResourceHandler("/" + dirName + "/**").addResourceLocations("file:/"+ uploadPath + "/");
}
@Override
/* @Override
public void addCorsMappings(CorsRegistry registry) {
registry.addMapping("/**")
// Разрешаем основной домен, стейджинг и вложенные проекты пользователей
@@ -173,7 +173,7 @@ public class WebSecurityConfig implements WebMvcConfigurer {// extends WebSecuri
.allowedMethods("GET", "POST", "PUT", "DELETE", "OPTIONS")
.allowedHeaders("*")
.allowCredentials(true); // Нужно для работы с сессиями и куками
}
}*/
}