This repository has been archived by the owner on Dec 12, 2023. It is now read-only.
-
-
Notifications
You must be signed in to change notification settings - Fork 21
Possibility to set secure flag for cookie depending on environment #46
Labels
enhancement
New feature or request
Comments
Sure thing - would you line to controbute a PR to add this? (: |
With pleasure :) |
Amazing, the feature will be very welcome and should be quite smallish to implement:
|
Is it possible that you give me the right to push a new branch? |
Nope - there's another way to do it in open source work:
As far as I know this mostly comes down to permissions, here's an article explaining this: https://opensource.com/article/19/11/first-open-source-contribution-fork-clone Does that help / can you continue with that information? (: |
Yes thanks for the information :) |
Sign up for free
to subscribe to this conversation on GitHub.
Already have an account?
Sign in.
Describe the feature
At the moment it is only possible to use the
Local
-address to set the session cookie, because it's not allowed to set a non https cookie with thesecure
flag.I would like the possiblity to also use the
Network
-address:But it results in following error in the console:
Is it possible to make this line also configurable:
https://github.com/sidebase/nuxt-session/blob/main/src/runtime/server/middleware/session/index.ts#L15
Additional information
No response
The text was updated successfully, but these errors were encountered: