mirror of
https://github.com/better-auth/better-auth.git
synced 2026-10-19 11:24:57 -05:00
docs: add warning about localhost in trusted origins (#8527)
This commit is contained in:
@@ -200,7 +200,7 @@ Trusted origins prevent CSRF attacks and block open redirects. You can set a lis
|
||||
|
||||
### Basic Usage
|
||||
|
||||
The most basic usage is to specify exact origins:
|
||||
The most basic usage is to specify exact origins, below is an example of a trusted origins configuration:
|
||||
|
||||
```typescript
|
||||
{
|
||||
@@ -211,6 +211,9 @@ The most basic usage is to specify exact origins:
|
||||
]
|
||||
}
|
||||
```
|
||||
<Callout type="warning">
|
||||
Do not leave the localhost origin in a trusted origins list of a production auth instance.
|
||||
</Callout>
|
||||
|
||||
### Wildcard Origins
|
||||
|
||||
|
||||
Reference in New Issue
Block a user