next-secure-headers
Version:
Sets secure response headers for Next.js.
5 lines (4 loc) • 414 B
TypeScript
import type { ResponseHeader } from "../shared";
export declare type NosniffOption = false | "nosniff";
export declare const createXContentTypeOptionsHeaderValue: (option?: false | "nosniff" | undefined) => string | undefined;
export declare const createNosniffHeader: (option?: false | "nosniff" | undefined, headerValueCreator?: (option?: false | "nosniff" | undefined) => string | undefined) => ResponseHeader;