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

feat: allow to override cookie's httpOnly flag #42

Merged
merged 1 commit into from
Nov 30, 2023

Conversation

felixmosh
Copy link
Contributor

closes #41

@@ -83,7 +83,7 @@ export function doubleCsrf({
sameSite = "lax",
path = "/",
secure = true,
...remainingCOokieOptions
...remainingCookieOptions
Copy link
Contributor

Choose a reason for hiding this comment

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

Cheers, I have no idea how this capitalisation typo keeps coming back! 😂

@psibean
Copy link
Contributor

psibean commented Nov 30, 2023

Awesome! Cheers.

I think for backwards compatibility in behaviour, we should probably set the default value for it to true as well.

src/index.ts Show resolved Hide resolved
@psibean psibean merged commit 3f4069b into Psifi-Solutions:main Nov 30, 2023
4 checks passed
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.

allow to override httpOnly field of the cookie
2 participants