Module
Bucketchain.CORS
- Package
- purescript-bucketchain-cors
- Repository
- Bucketchain/purescript-bucketchain-cors
#AllowOrigins Source
#AllowCredentials Source
type AllowCredentials = BooleanThe type of Access-Control-Allow-Credentials.
#AllowMethods Source
type AllowMethods = Array MethodThe type of Access-Control-Allow-Methods.
#AllowHeaders Source
#ExposeHeaders Source
type ExposeHeaders = Array StringThe type of Access-Control-Expose-Headers.
#Options Source
type Options = { allowHeaders :: AllowHeaders, credentials :: AllowCredentials, exposeHeaders :: ExposeHeaders, maxAge :: MaxAge, methods :: AllowMethods, origins :: AllowOrigins }The type of CORS options.
#defaultOptions Source
defaultOptions :: OptionsDefault options.
- origins:
AnyOrigin - credentials:
false - maxAge:
1728000 - methods:
[ GET, HEAD, PUT, POST, DELETE, PATCH ] - allowHeaders:
AnyHeader - exposeHeaders:
[]
#withCORS Source
withCORS :: Options -> MiddlewareThe CORS middleware.
- Modules
- Bucketchain.
CORS