cors_generate_middleware
Generate CORS middleware for a project by providing the directory path. Configures cross-origin resource sharing to allow requests from authorized domains.
Instructions
Generate CORS middleware
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"directory": "<directory>"
},
"name": "cors_generate_middleware"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| api_key | No | ||
| directory | Yes | Project directory |