Skip to content

Improve error message when Origin header is invalid - #14743

Merged
brophdawg11 merged 5 commits into
remix-run:devfrom
rossipedia:chore/invalid-origin-url-error-message
Jan 23, 2026
Merged

brophdawg11 merged 5 commits into
remix-run:devfrom
rossipedia:chore/invalid-origin-url-error-message

Conversation

@rossipedia

Copy link
Copy Markdown
Contributor

Small change. Was seeing Invalid URL in our error logs and traced it here, figured a more specific error message might help future devs trying to track down what/why this happens.

@changeset-bot

changeset-bot Bot commented Jan 23, 2026 •

Copy link
Copy Markdown

🦋 Changeset detected

Latest commit: e511080

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

This PR includes changesets to release 11 packages
Name Type
react-router Patch
@react-router/architect Patch
@react-router/cloudflare Patch
@react-router/dev Patch
react-router-dom Patch
@react-router/express Patch
@react-router/node Patch
@react-router/serve Patch
@react-router/fs-routes Patch
@react-router/remix-routes-option-adapter Patch
create-react-router 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

Comment thread packages/react-router/lib/actions.ts Outdated
Comment thread packages/react-router/lib/actions.ts Outdated
@brophdawg11
brophdawg11 merged commit d78c034 into remix-run:dev Jan 23, 2026
5 checks passed
);
}
});

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

🤦 My muscle memory around adding tests needs work, sorry!

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

No worries - I had claude write them!

@rossipedia
rossipedia deleted the chore/invalid-origin-url-error-message branch January 26, 2026 21:41
@github-actions

Copy link
Copy Markdown
Contributor

🤖 Hello there,

We just published version 7.13.1-pre.0 which includes this pull request. If you'd like to take it for a test run please try it out and let us know what you think!

Thanks!

@github-actions

Copy link
Copy Markdown
Contributor

🤖 Hello there,

We just published version 7.13.1 which includes this pull request. If you'd like to take it for a test run please try it out and let us know what you think!

Thanks!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants