Skip to content
New issue

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

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

Open
SaumyaSoman opened this issue Jun 8, 2023 · 0 comments
Open

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

SaumyaSoman opened this issue Jun 8, 2023 · 0 comments

Comments

@SaumyaSoman
Copy link

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

No branches or pull requests

1 participant