Skip to content

feat(api): expose Date CORS response header for clock skew offset (#147) - #149

Open
namdamdoi68-oss wants to merge 1 commit into
stellar:mainfrom
namdamdoi68-oss:feat/expose-date-cors-header
Open

feat(api): expose Date CORS response header for clock skew offset (#147)#149
namdamdoi68-oss wants to merge 1 commit into
stellar:mainfrom
namdamdoi68-oss:feat/expose-date-cors-header

Conversation

@namdamdoi68-oss

Copy link
Copy Markdown

Exposes the Date response header in CORS middleware to allow clients to calculate server clock offset and correct wall clock skew. Fixes #147.

Copilot AI review requested due to automatic review settings August 1, 2026 07:36

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Pull request overview

Exposes the HTTP Date header to CORS clients for server clock-offset calculation.

Changes:

  • Adds Date to Access-Control-Expose-Headers.
  • Tests the updated CORS response headers.

Reviewed changes

Copilot reviewed 2 out of 2 changed files in this pull request and generated no comments.

File Description
internal/api/middleware/header.go Exposes the Date response header.
internal/api/middleware/middleware_test.go Verifies CORS headers.

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

…ellar#147)

Signed-off-by: namdamdoi68-oss <namdamdoi68@gmail.com>
@namdamdoi68-oss
namdamdoi68-oss force-pushed the feat/expose-date-cors-header branch from 62626d0 to d449b49 Compare August 2, 2026 02:41
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Wall clock skew causes degraded experience

2 participants