Skip to content

Commit

Permalink
Merge pull request #24 from lotteon2/dev-auth-refactoring
Browse files Browse the repository at this point in the history
add: add the authorization cors
  • Loading branch information
indl1670 authored Dec 14, 2023
2 parents 0d65079 + 544e68e commit 07643ff
Show file tree
Hide file tree
Showing 3 changed files with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -46,6 +46,7 @@ public void addCorsMappings(CorsRegistry registry) {
.allowedOrigins("http://localhost:3000")
.allowedMethods("GET", "POST", "PUT", "DELETE")
.allowedHeaders("*")
.exposedHeaders("Authorization")
.allowCredentials(true);
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,6 @@

import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestParam;

@FeignClient(name = "oauth2", url = "https://kauth.kakao.com")
Expand Down
2 changes: 1 addition & 1 deletion src/main/resources/application-local.yml
Original file line number Diff line number Diff line change
Expand Up @@ -72,7 +72,7 @@ system:

kakao:
logout:
redirect: http://localhost:9000/login
redirect: http://localhost:3000


service:
Expand Down

0 comments on commit 07643ff

Please sign in to comment.