Skip to content

Commit

Permalink
chore: change the cors allowCredentials false
Browse files Browse the repository at this point in the history
  • Loading branch information
JIUNG9 committed Jan 18, 2024
1 parent c2c8bda commit 63d3aca
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@ public void addCorsMappings(CorsRegistry registry) {
.allowedMethods("*")
.allowedHeaders("*")
.exposedHeaders("*")
.allowCredentials(true);
.allowCredentials(false);

}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@ public void onAuthenticationSuccess(HttpServletRequest request, HttpServletRespo

@Override
public void onAuthenticationSuccess(HttpServletRequest request, HttpServletResponse response,
Authentication authentication) {
Authentication authentication) {
String token = tokenHandler.createToken(getIdFromPrincipal(authentication),
createClaimsRoleMap(), response);
response.setHeader("Authorization","Bearer "+token );
Expand Down

0 comments on commit 63d3aca

Please sign in to comment.