| | |
| | | config.setAllowCredentials(true); |
| | | config.addAllowedOrigin("*"); |
| | | config.addAllowedHeader("*"); |
| | | config.setMaxAge(36000L); |
| | | config.addAllowedMethod("*"); |
| | | config.setMaxAge(3600L); |
| | | config.setAllowedMethods(Arrays.asList("GET", "HEAD", "POST", "PUT", "DELETE", "OPTIONS")); |
| | | UrlBasedCorsConfigurationSource source = new UrlBasedCorsConfigurationSource(); |
| | | source.registerCorsConfiguration("/**", config); |
| | |
| | | protected void configure(HttpSecurity http) throws Exception { |
| | | List<String> permitAllEndpointList = Arrays.asList( |
| | | AUTHENTICATION_URL, |
| | | REFRESH_TOKEN_URL |
| | | REFRESH_TOKEN_URL, |
| | | "/screen/**" |
| | | ); |
| | | |
| | | http |
| | |
| | | * @param signingKey |
| | | * |
| | | * @throws BadCredentialsException |
| | | * @throws JwtExpiredTokenException |
| | | * |
| | | * @return |
| | | */ |