跳转到内容
简体中文

requireSameOrigin

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

requireSameOrigin(options?): Middleware

Defined in: src/http/middleware/Csrf.ts:57

Reject unsafe-method requests (POST/PUT/PATCH/DELETE) whose Origin/Referer is cross-origin. A lightweight standalone CSRF defence for modern browsers; csrfProtection is the belt-and-suspenders option.

SameOriginOptions = {}

Middleware