nuxt-community / pwa-module

Zero config PWA solution for Nuxt.js
https://pwa.nuxtjs.org
MIT License
1.24k stars 171 forks source link

Document request not being executed when coming from external link (Gmail) #488

Closed onhate closed 3 years ago

onhate commented 3 years ago

I'm facing this hard to track issue when I click on an external link that points to my application the page is loading a pre-cached version without checking the user authentication therefore it shows a 404.

It does not happens the same when I refresh the page or when a link does a 301 to my application, only when coming from external site link clicks.

I need help on troubleshooting why the document request is not being made on this scenario because I have no idea of what is going on.

https://user-images.githubusercontent.com/980905/134394353-23d21bc2-f0cd-455f-aa16-948a8946e37a.mp4

danielroe commented 3 years ago

@onhate This can be caused by a cookie set to SameSite=Strict - see more info and also MDN.

onhate commented 3 years ago

hmm, interesting. Thanks for the valuable response @danielroe I'll follow up with updates on this issue.

onhate commented 3 years ago

@danielroe you are king! it was that, I changed my SameSite session cookie from Strict to Lax and it works fine now! I owe you a 🍺