Explorar el Código

tokens updated

rjsmall90 hace 6 años
padre
commit
cd39c85f6e

+ 1
- 1
src/main/java/com/passionproject/project_spitball20/JWT/WebSecurity.java Ver fichero

@@ -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;