Skip to content

Commit

Permalink
Remove Debug CORS check methods
Browse files Browse the repository at this point in the history
  • Loading branch information
djuarezgf committed Nov 11, 2024
1 parent db04834 commit 31943f2
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 55 deletions.
54 changes: 0 additions & 54 deletions src/main/java/de/samply/security/LoggedCorsConfiguration.java

This file was deleted.

Original file line number Diff line number Diff line change
Expand Up @@ -120,7 +120,7 @@ public JwtAuthenticationConverter jwtAuthenticationConverter() {

@Bean
CorsConfigurationSource corsConfigurationSource() {
CorsConfiguration configuration = new LoggedCorsConfiguration();
CorsConfiguration configuration = new CorsConfiguration();
configuration.setAllowedOrigins(Arrays.asList(frontendConfiguration.getBaseUrl(), explorerUrl));
configuration.setAllowedMethods(Arrays.asList("GET", "POST", "OPTIONS"));
configuration.setAllowedHeaders(Arrays.asList(HttpHeaders.ORIGIN, HttpHeaders.CONTENT_TYPE, HttpHeaders.ACCEPT, HttpHeaders.AUTHORIZATION, "Returnaccept")); // Allow required headers
Expand Down

0 comments on commit 31943f2

Please sign in to comment.