Skip to content

Commit

Permalink
[#101] add: cors allow origin dev 환경 url 추가
Browse files Browse the repository at this point in the history
  • Loading branch information
yeseul106 authored and rdd9223 committed Dec 9, 2023
1 parent cfc2ee9 commit da2c2c5
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -69,8 +69,8 @@ SecurityFilterChain devSecurityFilterChain(HttpSecurity http) throws Exception {
CorsConfigurationSource corsConfigurationSource() {
CorsConfiguration configuration = new CorsConfiguration();
configuration.setAllowedOrigins(
Arrays.asList("https://playground.sopt.org/", "http://localhost:3000",
"https://sopt-internal-dev.pages.dev"));
Arrays.asList("https://playground.sopt.org/", "http://localhost:3000/",
"https://sopt-internal-dev.pages.dev/"));
configuration.setAllowedMethods(Arrays.asList("GET", "POST", "PATCH", "DELETE", "OPTIONS"));
configuration.addAllowedHeader("*");
configuration.setAllowCredentials(false);
Expand Down

0 comments on commit da2c2c5

Please sign in to comment.