rjsmall90 6 lat temu
rodzic
commit
cd39c85f6e

+ 1
- 1
src/main/java/com/passionproject/project_spitball20/JWT/WebSecurity.java Wyświetl plik

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;