Skip to content

Commit

Permalink
Merge pull request Snailclimb#31 from MushroomBear/master
Browse files Browse the repository at this point in the history
long型以大写L结尾
  • Loading branch information
Snailclimb authored Feb 23, 2021
2 parents 8edcae8 + 0e8237e commit b729ed7
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -86,7 +86,7 @@ CorsConfigurationSource corsConfigurationSource() {
configuration.setAllowedMethods(Arrays.asList("GET", "POST", "DELETE", "PUT", "OPTIONS"));
configuration.setExposedHeaders(singletonList(SecurityConstants.TOKEN_HEADER));
configuration.setAllowCredentials(false);
configuration.setMaxAge(3600l);
configuration.setMaxAge(3600L);
UrlBasedCorsConfigurationSource source = new UrlBasedCorsConfigurationSource();
source.registerCorsConfiguration("/**", configuration);
return source;
Expand Down

0 comments on commit b729ed7

Please sign in to comment.