Skip to content

fix(cors): stop sending X-Project-Id on session provision - #46

Merged
akirilyuk merged 2 commits into
mainfrom
fix/cors-project-scoped-origins
Aug 21, 2026
Merged

fix(cors): stop sending X-Project-Id on session provision#46
akirilyuk merged 2 commits into
mainfrom
fix/cors-project-scoped-origins

Conversation

@akirilyuk

@akirilyuk akirilyuk commented Aug 21, 2026

Copy link
Copy Markdown
Contributor

Summary

  • Remove X-Project-Id from startSession POST /sessions headers.
  • CORS project scope is enforced via the client API key's bound project, not forgeable headers.
  • Unit test asserts X-Project-Id is not sent.

Related

Pairs with session-service + platform PRs on branch fix/cors-project-scoped-origins.

Verify

Verified locally and in CI; no extra manual steps.

Version bump

Not included — release separately if needed.

akirilyuk and others added 2 commits August 21, 2026 08:06
Include project id in session POST headers so browsers can pass CORS
preflight scoped to that project's allowed origins.

Co-authored-by: Cursor <cursoragent@cursor.com>
CORS project scope comes from the client API key only; forged headers
must not influence allowlist decisions.

Co-authored-by: Cursor <cursoragent@cursor.com>
@akirilyuk akirilyuk changed the title fix(cors): send X-Project-Id on session provision requests fix(cors): stop sending X-Project-Id on session provision Aug 21, 2026
@akirilyuk
akirilyuk merged commit dc51772 into main Aug 21, 2026
8 checks passed
@akirilyuk
akirilyuk deleted the fix/cors-project-scoped-origins branch August 21, 2026 02:35
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.

1 participant