Skip to content

Commit 924da72

Browse files
authored
Merge pull request #210 from festimap-org/develop
[feat] CORS 와일드 카드 허용 및 도메인 추가
2 parents 9532f90 + 759ebaa commit 924da72

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

src/main/java/com/halo/eventer/global/config/security/CorsConfig.java

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -25,15 +25,15 @@ public class CorsConfig {
2525
"http://m.localhost:3000",
2626
"https://firefestivaljeju.com",
2727
"https://m.firefestivaljeju.com",
28-
"https://stamp.jejulhfestival.festiv.kr",
29-
"https://parking.jejulhfestival.festiv.kr",
30-
"https://business.festiv.kr");
28+
"https://business.festiv.kr",
29+
"https://*.stamp.festiv.kr",
30+
"https://*.parking.festiv.kr");
3131

3232
@Bean
3333
public CorsConfigurationSource customCorsConfigurationSource() {
3434
CorsConfiguration configuration = new CorsConfiguration();
3535

36-
configuration.setAllowedOrigins(ALLOWED_ORIGINS);
36+
configuration.setAllowedOriginPatterns(ALLOWED_ORIGINS);
3737
configuration.setAllowedMethods(Arrays.asList("GET", "POST", "PUT", "DELETE", "PATCH", "OPTIONS"));
3838
configuration.setAllowedHeaders(Arrays.asList("Content-Type", "Authorization", "X-Requested-With"));
3939
configuration.setAllowCredentials(true);

0 commit comments

Comments
 (0)