docs: add warning about localhost in trusted origins (#8527)

This commit is contained in:
Alex Yang
2026-03-10 15:03:39 -07:00
parent 8e089edf42
commit 857fbb3d94
+4 -1
View File
@@ -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