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.
In your project, run:
pnpm i @written/cors-setup
TODO: Describe usage.
This is a mostly internal package, it's recommended to directly use @written/app
's app.cors()
method, which calls this.