Closed vinceglb closed 7 months ago
I was facing this issue today, @vinceglb. Safari is technically in the right here... The cookie set by this library uses secure: true
(as it should), which means it only works on sites being served via HTTPS (not HTTP).
Following these instructions will allow you to run Nuxt in dev mode served over HTTPS.
You can use the following commands to generate the certificates you need.
openssl genrsa 2048 > server.key
chmod 400 server.key
openssl req -new -x509 -nodes -sha256 -days 365 -key server.key -out server.crt
# https://stackoverflow.com/a/57895543/5609203
Good catch, Safari doesn't seem to accept secure cookies on localhost! Thank you 🙏
I tried to use nuxt-auth-utils with Safari on macOS 14.4.1, but I've never been able to get it to work.
The cookie
nuxt-session
is never received on Safari, but it's working on Arc.To reproduce:
http://localhost:3000/auth/auth0
for exampleauth0.get.ts
is executed without error. If I loguser
from theonSuccess
event handler, I get the information like expected.nuxt-session
cookieBut I can get https://todos.nuxt.dev/ works on Safari.
Is there anything I'm missing?