Module cors

Module cors 

Source
Expand description

CORS (Cross-Origin Resource Sharing) support for Lambda MCP servers

This module provides CORS header injection for Lambda responses, since Tower middleware cannot be used in the Lambda execution environment.

Structs§

CorsConfig
CORS configuration for Lambda MCP servers

Functions§

create_preflight_response
Create a CORS preflight response
inject_cors_headers
Inject CORS headers into a Lambda response (generic over body type)
validate_config
Validate CORS configuration