Skip to content

Add CORS support to routePartykitRequest.#320

Merged
threepointone merged 1 commit intomainfrom
cors
Feb 9, 2026
Merged

Add CORS support to routePartykitRequest.#320
threepointone merged 1 commit intomainfrom
cors

Conversation

@threepointone
Copy link
Collaborator

Pass cors: true for permissive defaults or cors: { ...headers } for custom CORS headers. Preflight (OPTIONS) requests are handled automatically for matched routes, and CORS headers are appended to all non-WebSocket responses — including responses returned by onBeforeRequest.

Pass `cors: true` for permissive defaults or `cors: { ...headers }` for custom CORS headers. Preflight (OPTIONS) requests are handled automatically for matched routes, and CORS headers are appended to all non-WebSocket responses — including responses returned by `onBeforeRequest`.
@changeset-bot
Copy link

changeset-bot bot commented Feb 9, 2026

🦋 Changeset detected

Latest commit: 27509d6

The changes in this PR will be included in the next version bump.

This PR includes changesets to release 1 package
Name Type
partyserver Patch

Not sure what this means? Click here to learn what changesets are.

Click here if you're a maintainer who wants to add another changeset to this PR

@threepointone threepointone merged commit 9bd3f56 into main Feb 9, 2026
4 of 5 checks passed
@threepointone threepointone deleted the cors branch February 9, 2026 02:49
This was referenced Feb 9, 2026
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