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
I tried
app.use(cors({ origin: function (ctx) { if (['https://www.example1.com', 'https://www.example2.com'].includes(ctx.get('Origin'))) { return ctx.get('Origin'); } return null; } }));
But it doesn't work, any solution ?
The text was updated successfully, but these errors were encountered:
See #52 (comment)
Sorry, something went wrong.
@vdegenne weird, my solution is the same as the comment you refer to but It couldn't work in my situation.
No branches or pull requests
I tried
But it doesn't work, any solution ?
The text was updated successfully, but these errors were encountered: