Skip to content

Remove CORS handling from routeAgentRequest#873

Merged
threepointone merged 1 commit into
mainfrom
passthrough-cors
Feb 9, 2026
Merged

Remove CORS handling from routeAgentRequest#873
threepointone merged 1 commit into
mainfrom
passthrough-cors

Conversation

@threepointone

Copy link
Copy Markdown
Contributor

Remove manual CORS wrapping and OPTIONS handling from routeAgentRequest and drop the cors field from AgentOptions. The function now delegates directly to routePartykitRequest with the "agents" prefix and relies on partyserver (>= 0.1.4) to handle CORS preflight and response headers. Add a changeset documenting the behavioral change.

Remove manual CORS wrapping and OPTIONS handling from routeAgentRequest and drop the cors field from AgentOptions. The function now delegates directly to routePartykitRequest with the "agents" prefix and relies on partyserver (>= 0.1.4) to handle CORS preflight and response headers. Add a changeset documenting the behavioral change.
@changeset-bot

changeset-bot Bot commented Feb 9, 2026

Copy link
Copy Markdown

🦋 Changeset detected

Latest commit: f6d134d

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

This PR includes changesets to release 1 package
Name Type
agents 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

@claude

This comment was marked as resolved.

@pkg-pr-new

pkg-pr-new Bot commented Feb 9, 2026

Copy link
Copy Markdown

Open in StackBlitz

npm i https://pkg.pr.new/cloudflare/agents@873

commit: f6d134d

@threepointone
threepointone merged commit d0579fa into main Feb 9, 2026
4 of 5 checks passed
@threepointone
threepointone deleted the passthrough-cors branch February 9, 2026 04:08
@github-actions github-actions Bot mentioned this pull request 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