Bladeren bron

tokens updated

rjsmall90 6 jaren geleden
bovenliggende
commit
cd39c85f6e
1 gewijzigde bestanden met toevoegingen van 1 en 1 verwijderingen
  1. 1
    1
      src/main/java/com/passionproject/project_spitball20/JWT/WebSecurity.java

+ 1
- 1
src/main/java/com/passionproject/project_spitball20/JWT/WebSecurity.java Bestand weergeven

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