Module

Bucketchain.CSRF

Package
purescript-bucketchain-csrf
Repository
Bucketchain/purescript-bucketchain-csrf

#Options Source

type Options = { host :: String, origins :: Array String }

The type of options.

  • host: hostname like example.com
  • origins: allowed origins like [ "http://example.com" ]

#withCSRFProtection Source

withCSRFProtection :: Options -> Middleware

CSRF protection middleware.