Skip to content

[fix] fix align cors configuration with header based authentication - #4267

Merged
Duansg merged 9 commits into
apache:masterfrom
Duansg:cors-allow-credentials-fix
Aug 9, 2026
Merged

[fix] fix align cors configuration with header based authentication#4267
Duansg merged 9 commits into
apache:masterfrom
Duansg:cors-allow-credentials-fix

Conversation

@Duansg

@Duansg Duansg commented Jul 29, 2026

Copy link
Copy Markdown
Member

What's changed?

Cross-origin access itself is unchanged: origins stay open and preflight requests are still answered, so no working request is affected.

Added a unit test that drives the real filter and asserts both halves — credentials are not allowed, and the preflight still succeeds.

Checklist

  • I have read the Contributing Guide
  • I have written the necessary doc or comment.
  • I have added the necessary unit tests and all cases have passed.

Add or update API

  • I have added the necessary e2e tests and all cases have passed.

@Duansg
Duansg requested a review from zqr10159 August 9, 2026 15:24

@zqr10159 zqr10159 left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The CORS configuration now matches HertzBeat's header-based authentication model: cross-origin API access remains available, while ambient credentials are no longer permitted. The regression tests cover both halves of that contract, and the current-head checks pass.

@Duansg
Duansg merged commit cfb3dee into apache:master Aug 9, 2026
4 checks passed
@Duansg
Duansg deleted the cors-allow-credentials-fix branch August 9, 2026 17:45
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants