Skip to content

Commit

Permalink
[HOTFIX] 새로운 어드민 도메인 cors 추가
Browse files Browse the repository at this point in the history
  • Loading branch information
dragontaek-lee committed Mar 23, 2024
1 parent c8bb76b commit 7eec15f
Showing 1 changed file with 8 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,12 @@ public class SecurityConfig {
@Value("${admin.url.dev}")
private String ADMIN_DEV_URL;

@Value("${admin.url.prod_legacy}")
private String ADMIN_PROD_URL_LEGACY;

@Value("${admin.url.dev_legacy}")
private String ADMIN_DEV_URL_LEGACY;

@Value("${admin.url.local}")
private String ADMIN_LOCAL_URL;

Expand Down Expand Up @@ -66,6 +72,8 @@ public CorsConfigurationSource corsConfigurationSource() {
configuration.addAllowedOrigin(ADMIN_PROD_URL);
configuration.addAllowedOrigin(ADMIN_DEV_URL);
configuration.addAllowedOrigin(ADMIN_LOCAL_URL);
configuration.addAllowedOrigin(ADMIN_PROD_URL_LEGACY);
configuration.addAllowedOrigin(ADMIN_DEV_URL_LEGACY);
configuration.addAllowedHeader("*");
configuration.addAllowedMethod("*");
configuration.setAllowCredentials(true);
Expand Down

0 comments on commit 7eec15f

Please sign in to comment.