Skip to content

Commit

Permalink
All custom header elapsed-time on CORS headers (#10999)
Browse files Browse the repository at this point in the history
  • Loading branch information
alisman authored Sep 18, 2024
1 parent 8c2425d commit 27327de
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ CorsConfigurationSource corsConfigurationSource() {
configuration.setAllowedHeaders(List.of("user-agent", "Origin", "Accept", "X-Requested-With","Content-Type",
"Access-Control-Request-Method","Access-Control-Request-Headers","Content-Encoding",
"X-Proxy-User-Agreement", "x-current-url"));
configuration.setExposedHeaders(List.of("total-count", "sample-count"));
configuration.setExposedHeaders(List.of("total-count", "sample-count", "elapsed-time"));
source.registerCorsConfiguration("/**", configuration);
return source;
}
Expand Down

0 comments on commit 27327de

Please sign in to comment.