Skip to content

Commit

Permalink
Update WebConfig.java
Browse files Browse the repository at this point in the history
  • Loading branch information
JongukYang authored Jan 12, 2024
1 parent 6d9ab21 commit 18ffb19
Showing 1 changed file with 9 additions and 4 deletions.
13 changes: 9 additions & 4 deletions src/main/java/com/hsstudy/GuessMyMBTI/config/WebConfig.java
Original file line number Diff line number Diff line change
Expand Up @@ -8,10 +8,15 @@
public class WebConfig implements WebMvcConfigurer {
@Override
public void addCorsMappings(CorsRegistry registry) {
// registry.addMapping("/**")
// .allowedOriginPatterns("https://gmmclients.click")
// .allowedHeaders("Authorization", "Set-Cookie")
// .exposedHeaders("Authorization", "Set-Cookie")
// .allowedMethods("*")
// .allowCredentials(true);
registry.addMapping("/**")
.allowedOriginPatterns("https://gmmclients.click")
.allowedHeaders("Authorization", "Set-Cookie")
.exposedHeaders("Authorization", "Set-Cookie")
.allowedOriginPatterns("*")
.allowedHeaders("*")
.allowedMethods("*")
.allowCredentials(true);
}
Expand All @@ -30,4 +35,4 @@ public void addCorsMappings(CorsRegistry registry) {
// .allowCredentials(true);
// }

}
}

0 comments on commit 18ffb19

Please sign in to comment.