diff --git a/api/drawingcouseselling/src/main/java/com/group1/drawingcouseselling/ApplicationWebConfig.java b/api/drawingcouseselling/src/main/java/com/group1/drawingcouseselling/ApplicationWebConfig.java index 5943e44..0b891cd 100644 --- a/api/drawingcouseselling/src/main/java/com/group1/drawingcouseselling/ApplicationWebConfig.java +++ b/api/drawingcouseselling/src/main/java/com/group1/drawingcouseselling/ApplicationWebConfig.java @@ -21,7 +21,7 @@ protected SpringApplicationBuilder configure(SpringApplicationBuilder builder) { public CorsFilter corsFilter() { CorsConfiguration corsConfiguration = new CorsConfiguration(); corsConfiguration.setAllowCredentials(true); - corsConfiguration.setAllowedOrigins(Arrays.asList("http://localhost:3000")); + corsConfiguration.setAllowedOrigins(Arrays.asList("http://localhost:3000", "http://anataarisa.hopto.org:3000")); corsConfiguration.setAllowedHeaders(Arrays.asList("Origin", "Access-Control-Allow-Origin", "Content-Type", "Accept", "Authorization", "Origin, Accept", "X-Requested-With", "Access-Control-Request-Method", "Access-Control-Request-Headers"));