Draft mode cookie lost within iframe when cross domain
Unanswered
Sinhala Hound posted this in #help-forum
Sinhala HoundOP
I'm trying to get Payload CMS's live preview functionality to work, but I'm facing a problem where the draft mode cookie (
__prerender_bypass) gets lost inside the live preview iframe. I think I'm running in to Chrome third party cookie restrictions. There seems to be some thoughts about ways to get around that by changing some cookie headers, but is there a way to manage that through the next.js interface?3 Replies
Sinhala HoundOP
Relevant article on Storyblok site https://www.storyblok.com/faq/next-js-preview-iframes
Sinhala HoundOP
It looks like next.js is unsetting the cookie for some reason. After the redirect, the next response from the server sets expiry to 1970
Why would it do that?