Skip to content

CORS detection for reactive stack on tomcat/netty is broken [SPR-17396] #21929

Closed

Description

@spring-projects-issues

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:

Activity

  1. spring-projects-issues commented on Oct 18, 2018

    @spring-projects-issues
    CollaboratorAuthor

    Brian Clozel commented

    Thanks Johannes Edmeier!

  2. added
    type: bug
    in: web
    on Jan 11, 2019
  3. added this to the 5.1.2 milestone on Jan 11, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

in: webtype: bug

Type

No type

Projects

No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions