Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -257,6 +257,7 @@ checkOrigin?: boolean;
<div class="ts-block-property-bullets">

- <span class="tag">default</span> `true`
- <span class="tag deprecated">deprecated</span> Use `trustedOrigins: ['*']` instead

</div>

Expand All @@ -281,11 +282,13 @@ trustedOrigins?: string[];

</div>

An array of origins that are allowed to make cross-origin form submissions to your app, even when `checkOrigin` is `true`.
An array of origins that are allowed to make cross-origin form submissions to your app.

Each origin should be a complete origin including protocol (e.g., `https://payment-gateway.com`).
This is useful for allowing trusted third-party services like payment gateways or authentication providers to submit forms to your app.

If the array contains `'*'`, all origins will be trusted. This is generally not recommended!

**Warning**: Only add origins you completely trust, as this bypasses CSRF protection for those origins.

</div>
Expand Down