Module

Bucketchain.CSRF

#Options

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

The type of options.

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

#withCSRFProtection

withCSRFProtection :: Options -> Middleware

CSRF protection middleware.

Modules