Skip to content

Commit

Permalink
[New] Add logs related to configured Access-Control-Allow-Origin
Browse files Browse the repository at this point in the history
  • Loading branch information
blcham committed Nov 23, 2023
1 parent 42ff464 commit 5fd9a49
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/main/java/cz/cvut/kbss/study/config/SecurityConfig.java
Original file line number Diff line number Diff line change
Expand Up @@ -117,6 +117,10 @@ private static void configureAllowedOrigins(CorsConfiguration corsConfig, Config
if (!allowedOrigins.isEmpty()) {
corsConfig.setAllowedOrigins(allowedOrigins);
corsConfig.setAllowCredentials(true);
LOG.debug(
"Using response header Access-Control-Allow-Origin with value {}.",
corsConfig.getAllowedOrigins()
);
}
}

Expand Down

0 comments on commit 5fd9a49

Please sign in to comment.