Skip to content

Commit

Permalink
[HOTFIX] web 설정파일 스웨거 경로 추가
Browse files Browse the repository at this point in the history
  • Loading branch information
seokbeom00 committed Oct 7, 2024
1 parent 49821aa commit 886368c
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ public class SecurityConfig {
"/swagger-ui/**",
"/swagger-ui.html",
"/swagger-resources/**",
"swagger-ui/index.html"
"/swagger-ui/index.html"
};

@Bean
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ public void addCorsMappings(CorsRegistry registry) {
registry.addMapping("/**")
.allowedOrigins("http://localhost:8080", "http://localhost:8081", "http://localhost:5173",
"https://seonyak.com", "https://www.seonyak.com", "https://api.seonyak.com",
"https://www.seonyak.p-e.kr")
"https://www.seonyak.p-e.kr", "https://api.seonyak.com/swagger-ui/index.html")
.allowedMethods("GET", "POST", "PUT", "PATCH", "DELETE")
.allowedHeaders("*")
.allowCredentials(true)
Expand Down

0 comments on commit 886368c

Please sign in to comment.