Skip to content

Commit

Permalink
[#36]feat: cors 허용헤더 범위에 token 추가
Browse files Browse the repository at this point in the history
  • Loading branch information
ujkkk committed Nov 5, 2024
1 parent 011be8a commit a4a4e05
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/main/java/soma/edupigateway/config/CorsConfig.java
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ public CorsConfigurationSource corsConfigurationSource() {
);
configuration.setAllowedMethods(List.of("GET", "POST", "PUT", "DELETE", "OPTIONS"));
configuration.setAllowedHeaders(
List.of("Content-Type", "Authorization", "Accept", "Access-Control-Allow-Origin"));
List.of("Content-Type", "Authorization", "Accept", "Access-Control-Allow-Origin", "token"));
configuration.setExposedHeaders(List.of("Content-Type"));
configuration.setAllowCredentials(true);
configuration.setMaxAge(3600L);
Expand Down

0 comments on commit a4a4e05

Please sign in to comment.