跳转到内容
简体中文

cors

此内容尚不支持你的语言。

cors(options, child): Route

Defined in: src/http/middleware/Cors.ts:35

Apply the CORS policy to child’s subtree. Validates the options up front: origins is required, and credentials cannot be combined with '*' (the Fetch spec forbids Access-Control-Allow-Origin: * with credentials).

CorsOptions

Route

Route