The provided secret has expired when selecting view
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.
Yes. This is a known "issue". We're looking into a fix where the button requests a new preview URL when clicked.
For now, the workaround is to refresh the iframe page to request a new link
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 ?