diff --git a/src/main/java/team7/inplace/security/config/CorsConfig.java b/src/main/java/team7/inplace/security/config/CorsConfig.java index 91c296b2..5d4d1a37 100644 --- a/src/main/java/team7/inplace/security/config/CorsConfig.java +++ b/src/main/java/team7/inplace/security/config/CorsConfig.java @@ -15,7 +15,7 @@ public CorsFilter corsFilter() { var source = new UrlBasedCorsConfigurationSource(); var config = new CorsConfiguration(); config.setAllowCredentials(true); - config.addAllowedOrigin("https://www.inplace.my"); + config.addAllowedOriginPattern("https://www.inplace.my"); config.addAllowedOriginPattern("https://api.inplace.my"); config.addAllowedHeader("Origin"); config.addAllowedHeader("Accept");