Skip to content

Commit

Permalink
[πŸ”₯!hotfix/#63] CORS μ—λŸ¬ ν•΄κ²°
Browse files Browse the repository at this point in the history
  • Loading branch information
junggyo1020 committed Jul 18, 2024
1 parent 5a55e3b commit 998ce42
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ public class WebMvcConfig implements WebMvcConfigurer {
@Override
public void addCorsMappings(CorsRegistry registry) {
registry.addMapping("/**")
.allowedOrigins("http://localhost:8080", "http://localhost:3000", "http://terning-official.p-e.kr","http://localhost:5173") // ν—ˆμš©ν•  좜처 : νŠΉμ • λ„λ©”μΈλ§Œ 받을 수 있음
.allowedOrigins("http://localhost:8080", "http://localhost:3000", "http://terning-official.p-e.kr","https://terning-official.p-e.kr", "http://localhost:5173") // ν—ˆμš©ν•  좜처 : νŠΉμ • λ„λ©”μΈλ§Œ 받을 수 있음
.allowedMethods("GET", "POST", "PUT", "DELETE", "PATCH") // ν—ˆμš©ν•  HTTP method
.allowCredentials(true); // μΏ ν‚€ 인증 μš”μ²­ ν—ˆμš©
}
Expand Down

0 comments on commit 998ce42

Please sign in to comment.