Skip to content
Open
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
23 changes: 23 additions & 0 deletions src/content/docs/en/reference/configuration-reference.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -447,6 +447,29 @@ The patterns support wildcards for flexible hostname matching:

When not configured, `X-Forwarded-Host` headers are not trusted and will be ignored.

#### security.actionBodySizeLimit

<p>

**Type:** `number`<br />
**Default:** `1048576` (1 MB)<br />
<Since v="5.18.0" />
</p>

Sets the maximum size in bytes allowed for action request bodies.

By default, action request bodies are limited to 1 MB (1048576 bytes) to prevent abuse.
You can increase this limit if your actions need to accept larger payloads, for example when handling file uploads.

```js
// astro.config.mjs
export default defineConfig({
security: {
actionBodySizeLimit: 10 * 1024 * 1024 // 10 MB
}
})
```

### vite

<p>
Expand Down