Parcourir la source

tokens updated

rjsmall90 il y a 6 ans
Parent
révision
cd39c85f6e

+ 1
- 1
src/main/java/com/passionproject/project_spitball20/JWT/WebSecurity.java Voir le fichier

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