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

x/xserver/src/mod.ts>defenders

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

Methods

contentSecurityPolicyBaseUri(data: string): this
contentSecurityPolicyChildSrc(data: string): this
contentSecurityPolicyFontSrc(data: string): this
contentSecurityPolicyFormSrc(data: string): this
contentSecurityPolicyFrameSrc(data: string): this
contentSecurityPolicyImgSrc(data: string): this
contentSecurityPolicyMediaSrc(data: string): this
contentSecurityPolicyObjectSrc(data: string): this
contentSecurityPolicyScriptSrc(data: string): this
contentSecurityPolicyStyleSrc(data: string): this
contentSecurityPolicyWorkerSrc(data: string): this
crossOriginEmbedderPolicy(data: CrossOriginEmbedderPolicy): this
crossOriginOpenerPolicy(data: CrossOriginOpenerPolicy): this
crossOriginResourcePolicy(data: CrossOriginResourcePolicy): this
handle(context: Context): Response | void
originAgentCluster(data: string): this
referrerPolicy(data: string): this
strictTransportSecurity(data: string): this
xContentTypeOptions(data: string): this
xDnsPrefetchControl(data: string): this
xDownloadOptions(data: string): this
xFrameOptions(data: string): this
xPermittedCrossDomainPolicies(data: string): this
xXssProtection(data: string): this