next-drupal icon indicating copy to clipboard operation
next-drupal copied to clipboard

The provided secret has expired when selecting view

Open dottodot opened this issue 3 years ago • 2 comments

I've noticed an issue recently where pressing the view button results in the site loading the api/preview route wit The provided secret has expired response. I believe this happens if you press view then trigger the exit-preview route reload the page then go back and press view again.

Does the view button need to go via the api/preview route? I would have thought it could just go directly to the page url.

dottodot avatar Jan 19 '23 08:01 dottodot

Yes. This is a known "issue". We're looking into a fix where the button requests a new preview URL when clicked.

fGk4bVv8

For now, the workaround is to refresh the iframe page to request a new link

shadcn avatar Jan 19 '23 15:01 shadcn

Hello, we have the same issue here, with a preview of content. When we're pushing the "view" button, after the 30 seconds, we got a message The provided secret has expired.. We need to refresh the iframe to get the "View" button to get working again. Any idea to fix this ?

AlexandreBourdeaudhui avatar May 02 '23 12:05 AlexandreBourdeaudhui