We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
how do i set options
The text was updated successfully, but these errors were encountered:
@csrgxtu should be cors(options) https://github.com/koajs/cors/blob/master/index.js#L19
Sorry, something went wrong.
To answer, I present one change to the final statement from the example code in "Quick Start" of README.md at tag 3.0.0:
README.md
3.0.0
const Koa = require('koa'); const cors = require('@koa/cors'); const app = new Koa(); app.use(cors({ // … allowMethods: 'GET,HEAD', keepHeadersOnError: true, // … }));
Does this help?
Edit: The post is three years old. 😅
No branches or pull requests
how do i set options
The text was updated successfully, but these errors were encountered: