JS Hooks - setCookie - What value to use for SameSite? #4568
-
https://pocketbase.io/jsvm/interfaces/http.SameSite.html e.httpContext.setCookie(
new Cookie({
name: "pbfr-admin",
value: e.token,
expires: expires,
path: "/",
sameSite: XXXX, // <--- what to put here???
})
); Tried: The docs do not make sense to me. Also, how do I use |
Beta Was this translation helpful? Give feedback.
Answered by
VictorioBerra
Mar 15, 2024
Replies: 1 comment
-
It was Hierarchy -> Number -> SameSite : I guess means SameSite is an interface over nothing but a number? |
Beta Was this translation helpful? Give feedback.
0 replies
Answer selected by
VictorioBerra
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
It was
3
as seen here: https://pocketbase.io/jsvm/classes/Cookie.htmlHierarchy -> Number -> SameSite : I guess means SameSite is an interface over nothing but a number?