Skip to content

Commit

Permalink
Merge pull request #121 from Kernel360/feature/member-cors
Browse files Browse the repository at this point in the history
Feature/member cors
  • Loading branch information
HiSeungmin authored Jan 24, 2025
2 parents b89a62e + 8b5d44f commit 9269751
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 10 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -45,8 +45,7 @@ public SpringSecurityConfig(TokenProvider tokenProvider, TokenRepository tokenRe

private static final String[] AUTH_WHITELIST = {
"/api/v1/member/**", "/swagger-ui/**", "/api-docs", "/swagger-ui-custom.html",
"/v3/api-docs/**", "/api-docs/**", "/swagger-ui.html", "/api/v1/auth/**",
"/api/**"
"/v3/api-docs/**", "/api-docs/**", "/swagger-ui.html"
};

/**
Expand Down
10 changes: 2 additions & 8 deletions Common/src/main/java/com/seveneleven/config/WebConfig.java
Original file line number Diff line number Diff line change
Expand Up @@ -26,18 +26,12 @@ public void configureMessageConverters(List<HttpMessageConverter<?>> converters)
@Override
public void addCorsMappings(CorsRegistry registry) {
registry.addMapping("/**")
.allowedOriginPatterns("http://kernel-dev-lens.vercel.app",
"https://kernel-dev-lens.vercel.app",
.allowedOriginPatterns(
"http://localhost:3000",
"https://localhost:3000",
"http://www.devlens.work",
"https://www.devlens.work",
"http://devlens.work",
"https://devlens.work",
"http://api.devlens.work",
"https://api.devlens.work")

.allowedMethods("GET", "POST", "PUT", "DELETE", "PATCH")
.allowedMethods("GET", "POST", "PUT", "DELETE", "PATCH", "OPTIONS")
.allowedHeaders("*")
.allowCredentials(true);
}
Expand Down

0 comments on commit 9269751

Please sign in to comment.