Skip to content

Commit

Permalink
πŸ› Swagger μˆ˜μ • (#31)
Browse files Browse the repository at this point in the history
* πŸ› 버그 μˆ˜μ •

* πŸ› 버그 μˆ˜μ •
  • Loading branch information
Jindongleee authored Nov 2, 2024
1 parent 8031df5 commit b9a9b1d
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,7 @@ public CorsConfiguration getCorsConfiguration(HttpServletRequest request) {
"https://www.to-gather.info",
"http://localhost:5173",
"http://localhost:8080",
"https://backend.to-gather.info/swagger-ui/index.html#"
"https://backend.to-gather.info"
));
configuration.setAllowedMethods(Arrays.asList("GET", "POST", "PUT", "DELETE", "OPTIONS"));
configuration.setAllowCredentials(true);
Expand All @@ -78,7 +78,7 @@ public CorsConfiguration getCorsConfiguration(HttpServletRequest request) {
.failureHandler(customFailureHandler)
)
.authorizeHttpRequests(authorize -> authorize
.requestMatchers("/**","/api/**").permitAll()
.requestMatchers("/**","/swagger-ui/**").permitAll()
.anyRequest().authenticated()
)
.sessionManagement(session -> session.sessionCreationPolicy(SessionCreationPolicy.STATELESS))
Expand Down

0 comments on commit b9a9b1d

Please sign in to comment.