mirror of
https://github.com/horizon-rust/horizon-site.git
synced 2026-12-03 19:12:41 +07:00
[PR #43] [MERGED] Forward Origin to the mod registry (submits were refused) #44
Labels
No labels
pull-request
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
horizon-rust/horizon-site#44
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
📋 Pull Request Information
Original PR: https://github.com/horizon-rust/horizon-site/pull/43
Author: @ludovic111
Created: 11/2/2026
Status: ✅ Merged
Merged: 11/2/2026
Merged by: @ludovic111
Base:
main← Head:fix/mods-proxy-origin📝 Commits (1)
a393ac8Forward Origin to the mod registry📊 Changes
1 file changed (+1 additions, -1 deletions)
View changed files
📝
app/api/mods/[...path]/route.ts(+1 -1)📄 Description
Every mod submission on playhorizon.dev/mods/submit fails with "send it from the registry's pages" (reported on Discord by a creator submitting a native mod).
Cause: the registry (
horizon-mod-registry,signed_in_here) accepts a change only when itsOriginisREGISTRY_PUBLIC_URL's origin. The site's/api/modsproxy didn't includeoriginin its forwarded headers, so the registry never saw it.Reproduced on live:
curl -X POST -H 'Origin: https://playhorizon.dev' https://playhorizon.dev/api/mods/submit→ 403send it from the registry's pages.Requests from other sites are refused.That is the proxy's own same-site check, which stays.Fix: forward
origin, asapp/staff/apialready does. The proxy checks same-site before forwarding, so a foreign origin still never reaches the registry.🤖 Generated with Claude Code
🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.