Skip to content

Commit

Permalink
Update SecurityConfig.java
Browse files Browse the repository at this point in the history
  • Loading branch information
DiegoSousa-11 authored Sep 19, 2024
1 parent 9cee5a1 commit fbc07d7
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/main/java/api/educai/security/SecurityConfig.java
Original file line number Diff line number Diff line change
Expand Up @@ -75,7 +75,7 @@ public PasswordEncoder passwordEncoder() {
public CorsConfigurationSource corsConfigurationSource() {
CorsConfiguration configuration = new CorsConfiguration();

configuration.setAllowedOriginPatterns("*");
configuration.setAllowedOriginPatterns(Arrays.asList("*"));
configuration.setAllowedMethods(Arrays.asList("GET", "POST", "PUT", "PATCH", "DELETE", "OPTIONS"));
configuration.setAllowedHeaders(Arrays.asList("authorization", "content-type", "x-auth-token", "userId", "classworkId", "classroomId"));
configuration.setExposedHeaders(List.of("x-auth-token"));
Expand Down

0 comments on commit fbc07d7

Please sign in to comment.