Skip to content

Commit

Permalink
Merge pull request #717 from woowacourse-teams/feat/#716
Browse files Browse the repository at this point in the history
cors 허용
  • Loading branch information
ay-eonii authored Oct 23, 2024
2 parents eee0d73 + 5c2b73c commit 2ad4eda
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 2ad4eda

Please sign in to comment.