Skip to content

Comments

add cors#4299

Merged
samuelstroschein merged 2 commits intomainfrom
fix-cors
Jan 10, 2026
Merged

add cors#4299
samuelstroschein merged 2 commits intomainfrom
fix-cors

Conversation

@samuelstroschein
Copy link
Member

@samuelstroschein samuelstroschein commented Jan 10, 2026

Note

Adds CORS support to the legacy /_rpc proxy.

  • Validates origins (localhost, inlang.com, and subdomains); rejects others with 403
  • Handles OPTIONS preflight with appropriate access-control-* headers and 204 response
  • Sets CORS headers on proxied responses and safely merges vary header
  • Cleans request headers (host, content-length) before forwarding to https://rpc.inlang.com/_rpc

Written by Cursor Bugbot for commit 8752c33. This will update automatically on new commits. Configure here.

@changeset-bot
Copy link

changeset-bot bot commented Jan 10, 2026

⚠️ No Changeset found

Latest commit: 8752c33

Merging this PR will not cause a version bump for any packages. If these changes should not result in a new version, you're good to go. If these changes should result in a version bump, you need to add a changeset.

This PR includes no changesets

When changesets are added to this PR, you'll see the packages that this PR includes changesets for and the associated semver types

Click here to learn what changesets are, and how to add one.

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

@cloudflare-workers-and-pages
Copy link

cloudflare-workers-and-pages bot commented Jan 10, 2026

Deploying with  Cloudflare Workers  Cloudflare Workers

The latest updates on your project. Learn more about integrating Git with Workers.

Status Name Latest Commit Preview URL Updated (UTC)
✅ Deployment successful!
View logs
inlang-website 8752c33 Commit Preview URL

Branch Preview URL
Jan 10 2026, 01:08 AM

Copy link

@chatgpt-codex-connector chatgpt-codex-connector bot left a comment

Choose a reason for hiding this comment

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

💡 Codex Review

Here are some automated review suggestions for this pull request.

Reviewed commit: 668ce91df9

ℹ️ About Codex in GitHub

Codex has been enabled to automatically review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

When you sign up for Codex through ChatGPT, Codex can also answer questions or update the PR, like "@codex address that feedback".

@samuelstroschein samuelstroschein merged commit e115d76 into main Jan 10, 2026
4 checks passed
@samuelstroschein samuelstroschein deleted the fix-cors branch January 10, 2026 01:12
@github-actions github-actions bot locked and limited conversation to collaborators Jan 10, 2026
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant