Skip to content

Commit

Permalink
전역 CORS 인터셉터 설정
Browse files Browse the repository at this point in the history
  • Loading branch information
장준하 authored and 장준하 committed Aug 7, 2024
1 parent ebb64b4 commit d65542e
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 2 deletions.
2 changes: 1 addition & 1 deletion src/main/java/newCar/event_page/config/WebConfig.java
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ public void addInterceptors(InterceptorRegistry registry) {
@Override
public void addCorsMappings(CorsRegistry registry) {
registry.addMapping("/**")
.allowedOrigins("*")
.allowedOriginPatterns("http://www.batro.org", "https://www.batro.org", "http://1.231.159.76", "https://1.231.159.76")
.allowCredentials(true)
.maxAge(3600);
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,6 @@
@Tag(name = "admin API", description = "admin API 설계입니다")
@RestController
@RequestMapping("/admin")
@CrossOrigin(origins = {"http://www.batro.org", "https://www.batro.org", "http://1.231.159.76", "https://1.231.159.76"}, allowCredentials = "true")
public class AdminController {

private final AdminService adminService;
Expand Down

0 comments on commit d65542e

Please sign in to comment.