Skip to content

Commit

Permalink
feat: cors 허용
Browse files Browse the repository at this point in the history
  • Loading branch information
ay-eonii committed Oct 23, 2024
1 parent eee0d73 commit 5c2b73c
Showing 1 changed file with 6 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -10,8 +10,12 @@ public class CorsConfig implements WebMvcConfigurer {
@Override
public void addCorsMappings(CorsRegistry registry) {
registry.addMapping("/**")
.allowedOrigins("http://localhost:8081", "https://dev.mouda.site", "https://mouda.site",
"https://appleid.apple.com")
.allowedOrigins("http://localhost:8081",
"https://dev.mouda.site",
"https://appleid.apple.com",
"https://test.mouda.site", "http://test.mouda.site",
"https://mouda.site", "http://mouda.site"
)
.allowedMethods("GET", "POST", "PATCH", "DELETE", "OPTIONS")
.allowedHeaders("Authorization", "Content-Type")
.allowCredentials(true)
Expand Down

0 comments on commit 5c2b73c

Please sign in to comment.