Skip to content

Commit

Permalink
Hotfix/#348 cors (#349)
Browse files Browse the repository at this point in the history
* [Hotfix]: CORS 에러 처리

* [Hotfix]: CORS 에러 처리
  • Loading branch information
dev-Crayon authored Mar 20, 2024
1 parent 5998dc6 commit 536f493
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -49,10 +49,10 @@ public SecurityFilterChain filterChain(HttpSecurity http) throws Exception {
public CorsConfigurationSource corsConfigurationSource() {
val configuration = new CorsConfiguration();

configuration.addAllowedOrigin("*");
configuration.addAllowedOrigin("sopt.org");
configuration.addAllowedHeader("*");
configuration.addAllowedMethod("*");
configuration.setAllowCredentials(false);
configuration.setAllowCredentials(true);

val source = new UrlBasedCorsConfigurationSource();
source.registerCorsConfiguration("/**", configuration);
Expand Down

0 comments on commit 536f493

Please sign in to comment.