Reference
ServerActionHandlerOptions
Security and validation options for createServerActionHandler.
Signature
interface ServerActionHandlerOptionsMembers
allowedActions?: readonly ServerActionRequestReference[]allowedOrigins?: readonly string[] | "any"authorize?: (request: Request, reference: ServerActionRequestReference, args: unknown[]): ServerActionValidationResult | Promise<ServerActionValidationResult>csrf?: boolean | { cookieName?: string; headerName?: string }maxBodyBytes?: numberreplayProtection?: { headerName?: string; seen: ServerActionReplayStore }