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

Fastify-cors with middleware #8

Closed
Puena opened this issue Nov 21, 2018 · 2 comments
Closed

Fastify-cors with middleware #8

Puena opened this issue Nov 21, 2018 · 2 comments

Comments

@Puena
Copy link

Puena commented Nov 21, 2018

Q: If i use this plugin with session (express-session) middleware. I get session-cookie on prefligth response. I think it because used 'preHandler' hook that higher in lifecycle. It is true and i must use another express-like middleware cors or i have solution to use fastify-cors and express-session middleware together? Sorry if is it inappropriate question i am new in programming, i am just curios.

@mcollina
Copy link
Member

I don't think you should be using express-session with this module.

Have you tried https://github.com/mcollina/fastify-secure-session?

@Puena
Copy link
Author

Puena commented Nov 22, 2018

ok i understood thank you for the response and work on the fastify.

@Puena Puena closed this as completed Nov 22, 2018
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

2 participants