Skip to content

Commit

Permalink
[refact] origin 허용 임시 추가 (#143)
Browse files Browse the repository at this point in the history
  • Loading branch information
yourzinc authored Aug 14, 2023
1 parent dc99d70 commit 6308e7c
Showing 1 changed file with 5 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -40,6 +40,9 @@ public class WebSecurityConfig {
@Value("${server.admin_url}")
private String ADMIN_URL;

@Value("${server.temporary_url")
private String TEMPORARY_URL;

private final JwtAuthenticationEntryPoint jwtAuthenticationEntryPoint;
private final JwtExceptionHandlerFilter jwtExceptionHandlerFilter;
private final JwtAuthenticationFilter jwtAuthenticationFilter;
Expand Down Expand Up @@ -147,7 +150,8 @@ private CorsConfiguration getDefaultCorsConfiguration() {
"http://localhost:3001",
USER_URL,
ADMIN_URL,
SERVER_URL));
SERVER_URL,
TEMPORARY_URL));
configuration.setAllowedHeaders(List.of("*"));
configuration.setAllowedMethods(List.of("*"));
configuration.setAllowCredentials(true);
Expand Down

0 comments on commit 6308e7c

Please sign in to comment.