Skip to content
New issue

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

Add cors middleware to exegesis middleware? #113

Closed
GoeranEnvirio opened this issue Aug 29, 2019 · 1 comment
Closed

Add cors middleware to exegesis middleware? #113

GoeranEnvirio opened this issue Aug 29, 2019 · 1 comment

Comments

@GoeranEnvirio
Copy link

GoeranEnvirio commented Aug 29, 2019

How do I add the cors middleware to express?

I tried with app.use(cors(exegesisMiddleware));

But it does not work.
I have searched for an exegesis-plugin-cors plugin also, but only found: exegesis-plugin-context
Can this be used for cors?

@GoeranEnvirio
Copy link
Author

Solved it, adding it before the middleware.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant