Skip to content

CORS filter sets the access-control-expose-headers header even when the origin is not allowed #33086

@zhaohuabing

Description

@zhaohuabing

Title: CORS filter sets the access-control-expose-headers header even when the origin is not allowed

It appears that this issue stems from #33051.

The is_cors_request_ variable is now being set to true when origin_allowed is false.

Previously, in the code prior to this PR, is_cors_request_ was set to false when origin_allowed was false.

Is this behavior expected, or is it a bug?

Metadata

Metadata

Assignees

Labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions