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 secure cookie flag to readme #164

Open
rianadon opened this issue Jan 2, 2019 · 1 comment
Open

Add secure cookie flag to readme #164

rianadon opened this issue Jan 2, 2019 · 1 comment

Comments

@rianadon
Copy link

rianadon commented Jan 2, 2019

I wanted to utilize Koa's secure so that generated cookies were only sent over HTTPS, but the readme was somewhat unclear whether this was supported.

It looks like all options given in the module's configuration are passed to Koa's ctx.cookies.set method, so setting this flag is already possible, but it would be helpful to add secure to the CONFIG example given in the readme.

Thanks!

@balazsnemeth
Copy link

Yes, this would have been very useful for me too.

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