Skip to content

Commit

Permalink
fix: add domain name to cors config
Browse files Browse the repository at this point in the history
  • Loading branch information
oxdjww committed May 11, 2024
1 parent f9c54ee commit 1297764
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 void addCorsMappings(CorsRegistry corsRegistry) {

corsRegistry.addMapping("/**") //모든 경로에서 매핑 진행
.exposedHeaders("Set-Cookie") //노출할 헤더값은 쿠키헤더
.allowedOrigins("http://localhost:3000"); //리액트서버주소에서 허용
.allowedOrigins("http://localhost:3000", "https://cogo.run/**"); //리액트서버주소에서 허용
}

}

0 comments on commit 1297764

Please sign in to comment.