Skip to main content
Deno 2 is finally here 🎉️
Learn more
Module

x/xserver/src/defenders.ts>default

X-Server a Deno server module with middleware
Go to Latest
class default
extends Plugin
import { default } from "https://deno.land/x/xserver@5.2.2/src/defenders.ts";

Methods

crossOriginEmbedderPolicy(data: CrossOriginEmbedderPolicy)
crossOriginOpenerPolicy(data: CrossOriginOpenerPolicy)
crossOriginResourcePolicy(data: CrossOriginResourcePolicy)
handle(context: Context): Response | void
originAgentCluster(data: string)
referrerPolicy(data: string)
xContentTypeOptions(data: string)
xDnsPrefetchControl(data: string)
xDownloadOptions(data: string)
xFrameOptions(data: string)
xXssProtection(data: string)