Skip to content

Commit

Permalink
fix: Security Config 수정
Browse files Browse the repository at this point in the history
  • Loading branch information
char-yb committed Apr 6, 2024
1 parent 59f12eb commit b17701d
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@

@Slf4j
@RequiredArgsConstructor
@Component
public class TokenFilter extends OncePerRequestFilter {

private final SecurityService securityService;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -44,6 +44,7 @@ public class WebSecurityConfig {

private static final String[] permitAllUrl = {
"/",
"/auth/**",
"/index.html",
"/favicon.ico",
"/robots.txt",
Expand Down Expand Up @@ -81,8 +82,9 @@ public WebSecurityCustomizer configure() {
public CorsConfigurationSource corsConfigurationSource() {
CorsConfiguration configuration = new CorsConfiguration();

configuration.addAllowedOriginPattern(UrlConstants.PROD_DOMAIN_URL.getValue());
configuration.addAllowedOriginPattern(UrlConstants.LOCAL_DOMAIN_URL.getValue());
// configuration.addAllowedOriginPattern(UrlConstants.PROD_DOMAIN_URL.getValue());
// configuration.addAllowedOriginPattern(UrlConstants.LOCAL_DOMAIN_URL.getValue());
configuration.addAllowedOriginPattern("*");
configuration.addAllowedMethod("*");
configuration.addAllowedHeader("*");
configuration.setAllowCredentials(true);
Expand Down

0 comments on commit b17701d

Please sign in to comment.