Module

Yoga.Fastify.Plugin.Helmet

Package
purescript-yoga-fastify
Repository
rowtype-yoga/purescript-yoga-fastify

#helmet Source

helmet :: forall opts opts_. Union opts opts_ HelmetOptionsImpl => Record opts -> Fastify -> Aff Unit

#HelmetOptionsImpl Source

type HelmetOptionsImpl :: Row Typetype HelmetOptionsImpl = (contentSecurityPolicy :: Foreign, dnsPrefetchControl :: Foreign, enableCSPNonces :: Boolean, frameguard :: Foreign, global :: Boolean, hsts :: Foreign, referrerPolicy :: Foreign, xssFilter :: Boolean)

#CspDirectivesImpl Source

type CspDirectivesImpl :: Row Typetype CspDirectivesImpl = (baseUri :: Array String, childSrc :: Array String, connectSrc :: Array String, defaultSrc :: Array String, fontSrc :: Array String, formAction :: Array String, frameAncestors :: Array String, frameSrc :: Array String, imgSrc :: Array String, manifestSrc :: Array String, mediaSrc :: Array String, objectSrc :: Array String, scriptSrc :: Array String, styleSrc :: Array String, workerSrc :: Array String)

#HstsOptionsImpl Source

type HstsOptionsImpl :: Row Typetype HstsOptionsImpl = (includeSubDomains :: Boolean, maxAge :: Int, preload :: Boolean)

#cspDirectives Source

cspDirectives :: forall opts opts_. Union opts opts_ CspDirectivesImpl => Record opts -> Foreign

#hstsOptions Source

hstsOptions :: forall opts opts_. Union opts opts_ HstsOptionsImpl => Record opts -> Foreign