[PR #7199] [MERGED] docs: document disableOriginCheck in options.mdx #24039

Closed
opened 2026-04-15 22:08:34 -05:00 by GiteaMirror · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/better-auth/better-auth/pull/7199
Author: @ping-maxwell
Created: 1/8/2026
Status: Merged
Merged: 1/8/2026
Merged by: @ping-maxwell

Base: canaryHead: docs/document-disableOriginCheck-in-options.mdx


📝 Commits (1)

  • 603ff83 docs: document disableOriginCheck in options.mdx

📊 Changes

2 files changed (+3 additions, -1 deletions)

View changed files

📝 docs/content/docs/reference/options.mdx (+2 -0)
📝 packages/better-auth/src/api/middlewares/origin-check.ts (+1 -1)

📄 Description

Summary by cubic

Added disableOriginCheck to the options docs and updated the origin-check middleware to use a consistent error code for missing/null Origin. This clarifies configuration and makes error handling consistent.

  • Refactors
    • Switched to APIError.from('FORBIDDEN', BASE_ERROR_CODES.MISSING_OR_NULL_ORIGIN) in origin-check middleware.

Written for commit 603ff838b1. Summary will update on new commits.


🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.

## 📋 Pull Request Information **Original PR:** https://github.com/better-auth/better-auth/pull/7199 **Author:** [@ping-maxwell](https://github.com/ping-maxwell) **Created:** 1/8/2026 **Status:** ✅ Merged **Merged:** 1/8/2026 **Merged by:** [@ping-maxwell](https://github.com/ping-maxwell) **Base:** `canary` ← **Head:** `docs/document-`disableOriginCheck`-in-options.mdx` --- ### 📝 Commits (1) - [`603ff83`](https://github.com/better-auth/better-auth/commit/603ff838b173ef546dbd40a676593621f69cb0d5) docs: document `disableOriginCheck` in options.mdx ### 📊 Changes **2 files changed** (+3 additions, -1 deletions) <details> <summary>View changed files</summary> 📝 `docs/content/docs/reference/options.mdx` (+2 -0) 📝 `packages/better-auth/src/api/middlewares/origin-check.ts` (+1 -1) </details> ### 📄 Description <!-- This is an auto-generated description by cubic. --> ## Summary by cubic Added disableOriginCheck to the options docs and updated the origin-check middleware to use a consistent error code for missing/null Origin. This clarifies configuration and makes error handling consistent. - **Refactors** - Switched to APIError.from('FORBIDDEN', BASE_ERROR_CODES.MISSING_OR_NULL_ORIGIN) in origin-check middleware. <sup>Written for commit 603ff838b173ef546dbd40a676593621f69cb0d5. Summary will update on new commits.</sup> <!-- End of auto-generated description by cubic. --> --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
GiteaMirror added the pull-request label 2026-04-15 22:08:34 -05:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: github-starred/better-auth#24039