Configuration
Server Actions origin configuration
Server Action origin checking compares request origin and host information. Configure extra allowed origins only for a reviewed proxy deployment, not as a broad bypass. This does not replace per-action authorization or request validation. Source: https://nextjs.org/docs/app/api-reference/config/next-config-js/serverActions. Documentation-reviewed illustrative draft; installed declarations and runtime not verified.
Formal Syntax & Structure
nextjs syntaxnextjs
serverActions.allowedOrigins (verify exact config for selected patch)Working Example
Example Snippetnextjs
// next.config.ts (staged; verify deployment host and exact patch)export default { experimental: { serverActions: { allowedOrigins: ['trusted-proxy.example'] } } };