-
Notifications
You must be signed in to change notification settings - Fork 38.6k
Closed
Labels
in: webIssues in web modules (web, webmvc, webflux, websocket)Issues in web modules (web, webmvc, webflux, websocket)type: bugA general bugA general bug
Milestone
Description
Johannes Edmeier opened SPR-17396 and commented
The CorsUtils queries the presence of the Origin
and Access-Control-Request-Method
with a simple non null check. But when using the reactive stack the TomcatHeadersAdapter#get()
and the NettyHeadersAdapter#get()
returns an empty list (instead of null) when the requested header is not present.
The effect of this is, that OPTIONS
requests aren't handled with the (correct) annotated handler method but are incorrectly handled as preflight requests (which they aren't)
Affects: 5.1.1
Issue Links:
- Improve WebFlux performance for header management [SPR-17250] #21783 Improve WebFlux performance for header management
Metadata
Metadata
Assignees
Labels
in: webIssues in web modules (web, webmvc, webflux, websocket)Issues in web modules (web, webmvc, webflux, websocket)type: bugA general bugA general bug