Module

Yoga.Fastify.Plugin.Cors

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

#cors Source

cors :: forall safety opts opts_. Union opts opts_ (CorsOptionsImpl safety) => Record opts -> Fastify -> Aff Unit

#corsCredentialed Source

corsCredentialed :: forall safety opts opts_. CredentialsSafe safety => Union opts opts_ (CorsCredentialedOptionsImpl safety) => Record opts -> Fastify -> Aff Unit

#CorsOptionsImpl Source

type CorsOptionsImpl :: Type -> Row Typetype CorsOptionsImpl safety = (allowedHeaders :: Array String, exposedHeaders :: Array String, hideOptionsRoute :: Boolean, maxAge :: Int, methods :: Array String, origin :: Origin safety, preflight :: Boolean, strictPreflight :: Boolean)

#CorsCredentialedOptionsImpl Source

type CorsCredentialedOptionsImpl :: Type -> Row Typetype CorsCredentialedOptionsImpl safety = (allowedHeaders :: Array String, credentials :: Boolean, exposedHeaders :: Array String, hideOptionsRoute :: Boolean, maxAge :: Int, methods :: Array String, origin :: Origin safety, preflight :: Boolean, strictPreflight :: Boolean)

#Origin Source

newtype Origin (safety :: Type)

Instances

#AllowAll Source

data AllowAll

Instances

#CredentialsSafe Source

class CredentialsSafe (safety :: Type) 

Instances