Documentation / @agentick/mcp / allowListGuard
Function: allowListGuard()
allowListGuard(
options):ConnectionGuard
Defined in: server/security/stages.ts:374
Allow-list connection guard. Rejects connections whose origin or IP address doesn't match the configured patterns.
typescript
allowListGuard({
origins: ["https://app.example.com", "https://*.example.com"],
remoteAddresses: ["10.0.0.0/8", "127.0.0.1", "::1"],
});