Skip to content

Commit

Permalink
setting: cors 수정
Browse files Browse the repository at this point in the history
  • Loading branch information
jeongns2611 committed Feb 10, 2025
1 parent 73e8ece commit 40f065c
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 5 deletions.
2 changes: 1 addition & 1 deletion Admin/src/main/java/com/seveneleven/AdminApplication.java
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
@EnableJpaAuditing
@OpenAPIDefinition(
servers = {
@Server(description = "local Port Admin", url = "http://localhost:8443/admin"),
@Server(description = "local Port Admin", url = "http://localhost:8443"),
@Server(description = "server Admin", url = "https://api.devlens.work/admin")
}
)
Expand Down
4 changes: 1 addition & 3 deletions Common/src/main/java/com/seveneleven/config/WebConfig.java
Original file line number Diff line number Diff line change
Expand Up @@ -17,9 +17,7 @@ public void addCorsMappings(CorsRegistry registry) {
"https://api.devlens.work",
"https://local.devlens.work",
"http://localhost/admin",
"http://localhost/main",
"http://localhost:8443/admin",
"http://localhost:8444/main")
"http://localhost/main")
.allowedMethods("GET", "POST", "PUT", "DELETE", "PATCH", "OPTIONS")
.allowedHeaders("*")
.allowCredentials(true);
Expand Down
2 changes: 1 addition & 1 deletion Main/src/main/java/com/seveneleven/MainApplication.java
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
@EnableJpaAuditing
@OpenAPIDefinition(
servers = {
@Server(description = "local Port Main", url = "http://localhost:8444/main"),
@Server(description = "local Port Main", url = "http://localhost:8444"),
@Server(description = "server Main", url = "https://api.devlens.work/main")
}
)
Expand Down

0 comments on commit 40f065c

Please sign in to comment.