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
Hello,
How can I set cors globally? In express it would be
app.use(cors());
I have nbit working as such
return Response.json({ hello: 'world' }, { headers: { "Access-Control-Allow-Methods": "GET, HEAD, POST, OPTIONS", "Access-Control-Allow-Headers": "Content-Type, Accept", "Access-Control-Allow-Origin": "https://medicamina.us" });
but I don't want to copy paste this boilerplate headers object everywhere, can I set it once and forget about it like app.use(cors())?
The text was updated successfully, but these errors were encountered:
Currently this isn't possible, but I've implemented a proof of concept in #19, if you have any thoughts.
Sorry, something went wrong.
No branches or pull requests
Hello,
How can I set cors globally? In express it would be
I have nbit working as such
but I don't want to copy paste this boilerplate headers object everywhere, can I set it once and forget about it like app.use(cors())?
The text was updated successfully, but these errors were encountered: