Skip to content

Commit

Permalink
Merge branch 'iss-#40' into iss-#42
Browse files Browse the repository at this point in the history
  • Loading branch information
choidongkuen authored Jan 13, 2024
2 parents 33a04d7 + bcaa7f5 commit 9673d4a
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@ public class TokenResponse {
private String refreshToken;
private String oauthId;


@Builder
public TokenResponse(String accessToken, String refreshToken) {
this.accessToken = accessToken;
Expand Down
11 changes: 6 additions & 5 deletions src/main/java/net/teumteum/core/security/config/CorsConfig.java
Original file line number Diff line number Diff line change
Expand Up @@ -6,14 +6,15 @@

@Configuration
public class CorsConfig implements WebMvcConfigurer {

@Override
public void addCorsMappings(CorsRegistry registry) {
registry.addMapping("/**")
.allowedMethods("*")
.allowedHeaders("*")
.allowedOriginPatterns("*")
.exposedHeaders("*")
.allowCredentials(true);
.allowedMethods("*")
.allowedHeaders("*")
.allowedOriginPatterns("*")
.exposedHeaders("*")
.allowCredentials(true);
WebMvcConfigurer.super.addCorsMappings(registry);
}
}

0 comments on commit 9673d4a

Please sign in to comment.