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

Update README.md #261

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

niels-van-den-broeck
Copy link

@niels-van-den-broeck niels-van-den-broeck commented Jul 9, 2024

Following the discussion on: #250

Documents the change that requires trustProxy on the fastify instance.

Signed-off-by: Niels Van den Broeck <[email protected]>
@@ -84,6 +84,8 @@ A session store. Needs the following methods:

Compatible to stores from [express-session](https://github.com/expressjs/session).

Using an async store which connects to external services requires you to add the `trustProxy` setting to your fastify instance if you want to use secure cookies over https.
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
Using an async store which connects to external services requires you to add the `trustProxy` setting to your fastify instance if you want to use secure cookies over https.
If you are terminating HTTPs at
the reverse proxy, you need to add the `trustProxy` setting to your fastify instance if you want to use secure cookies.

I think this might be a better representation of the problem. I don't see how an async store could impact/change this.

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

Successfully merging this pull request may close these issues.

2 participants