|
|
|
|
46
|
CorsConfigurationSource corsConfigurationSource() {
|
46
|
CorsConfigurationSource corsConfigurationSource() {
|
47
|
final UrlBasedCorsConfigurationSource source = new UrlBasedCorsConfigurationSource();
|
47
|
final UrlBasedCorsConfigurationSource source = new UrlBasedCorsConfigurationSource();
|
48
|
CorsConfiguration cors = new CorsConfiguration().applyPermitDefaultValues();
|
48
|
CorsConfiguration cors = new CorsConfiguration().applyPermitDefaultValues();
|
49
|
- cors.addAllowedHeader("Authorization");
|
|
|
|
|
49
|
+ cors.addExposedHeader("Authorization");
|
50
|
|
50
|
|
51
|
source.registerCorsConfiguration("/**", cors);
|
51
|
source.registerCorsConfiguration("/**", cors);
|
52
|
return source;
|
52
|
return source;
|