We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
2.2.2
WebMvcConfigurer
CorsRegistration corsRegistration = registry.addMapping("/**") .allowCredentials(true); corsRegistration.allowedHeaders("*") .maxAge(1800L) .allowedMethods(HttpMethod.GET.name(), HttpMethod.POST.name(), HttpMethod.PUT.name(), HttpMethod.OPTIONS.name(), HttpMethod.DELETE.name()) .exposedHeaders("Content-Length");
controller
@RequestMapping("/test) @RestController public class ExampleController { @GetMapping public CompletableFuture<T> test() { // do something } }
reponse headers
Vary | Origin Vary | Access-Control-Request-Method Vary | Access-Control-Request-Headers Vary | Origin Vary | Access-Control-Request-Method Vary | Access-Control-Request-Headers
The text was updated successfully, but these errors were encountered:
#24223 PR
Sorry, something went wrong.
Superseded by #24223.
For future reference you do not need to create both an issue and a PR. Just create the PR with the issue description.
No branches or pull requests
version
2.2.2
example
WebMvcConfigurer
controller
reponse headers
The text was updated successfully, but these errors were encountered: