@written/cors-setup
v0.3.18
Published
CORS helper for your Appwrite Project
Downloads
32
Readme
@written/cors-setup
Setup CORS to, by default, allow everything, in your Appwrite app. Offers a wrapper to use with @written/wrap
, exported as wrapCorsResponse
, aswell as a function to, based on the inputted args, return just the response headers.
Installation
In your project, run:
pnpm i @written/cors-setup
Usage
TODO: Describe usage.
Notice
This is a mostly internal package, it's recommended to directly use @written/app
's app.cors()
method, which calls this.