mirror of
https://gitea.gofwd.group/Forward_Group/ballistic-builder-spring.git
synced 2026-01-21 01:01:05 -05:00
cors fixes
This commit is contained in:
@@ -77,7 +77,7 @@ public class SecurityConfig {
|
|||||||
@Bean
|
@Bean
|
||||||
public CorsConfigurationSource corsConfigurationSource() {
|
public CorsConfigurationSource corsConfigurationSource() {
|
||||||
CorsConfiguration cfg = new CorsConfiguration();
|
CorsConfiguration cfg = new CorsConfiguration();
|
||||||
cfg.setAllowedOrigins(List.of("http://localhost:3000"));
|
cfg.setAllowedOrigins(List.of("http://localhost:3000", "https://battl.builders"));
|
||||||
cfg.setAllowedMethods(List.of("GET", "POST", "PUT", "PATCH", "DELETE", "OPTIONS"));
|
cfg.setAllowedMethods(List.of("GET", "POST", "PUT", "PATCH", "DELETE", "OPTIONS"));
|
||||||
cfg.setAllowedHeaders(List.of("Authorization", "Content-Type"));
|
cfg.setAllowedHeaders(List.of("Authorization", "Content-Type"));
|
||||||
cfg.setExposedHeaders(List.of("Authorization"));
|
cfg.setExposedHeaders(List.of("Authorization"));
|
||||||
|
|||||||
Reference in New Issue
Block a user