Invert variable to improve code readability

This commit is contained in:
David Dworken 2025-05-30 09:06:01 -07:00
commit ab900839fb
No known key found for this signature in database

View file

@ -254,7 +254,7 @@ app.post('/mcp', async (req, res) => {
},
// DNS rebinding protection is disabled by default for backwards compatibility. If you are running this server
// locally, make sure to set:
// disableDnsRebindingProtection: true,
// enableDnsRebindingProtection: true,
// allowedHosts: ['127.0.0.1'],
});
@ -399,7 +399,7 @@ The Streamable HTTP transport includes DNS rebinding protection to prevent secur
```typescript
const transport = new StreamableHTTPServerTransport({
sessionIdGenerator: () => randomUUID(),
disableDnsRebindingProtection: false,
enableDnsRebindingProtection: true,
allowedHosts: ['127.0.0.1', ...],
allowedOrigins: ['https://yourdomain.com', 'https://www.yourdomain.com']