astro
Version:
Astro is a modern site builder with web best practices, performance, and DX front-of-mind.
9 lines (8 loc) • 321 B
TypeScript
import type { MiddlewareHandler } from '../../types/public/common.js';
/**
* Returns a middleware function in charge to check the `origin` header.
*
* @private
*/
export declare function createOriginCheckMiddleware(): MiddlewareHandler;
export declare function hasFormLikeHeader(contentType: string | null): boolean;