Skip to content

Cors Filter does an add to the HeaderMap instead of set #952

Description

@SaumyaSoman

Describe the bug
Cors Filter does an add to the HeaderMap in setOriginAndCredentials and addExposedHeaders methods . This will add a header without replace existing headers.

To Reproduce
Create a non preflight request with origin and expose headers and add cors filter to it. Call the API couple of times. Headers keep increasing.

Expected behavior
A set should be done instead of add

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions