rjsmall90 6 lat temu
rodzic
commit
cd39c85f6e

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

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