# Shareable preview link not working

**URL:** https://community.prismic.io/t/shareable-preview-link-not-working/7488
**Category:** Developing with Prismic
**Tags:** gatsby
**Created:** [October 15, 2021, 9:05am UTC](https://community.prismic.io/t/shareable-preview-link-not-working/7488 "2021-10-15T09:05:12Z")
**Posts on this page:** 8
**Page:** 1

<div class="post-metadata">

### Author: ![kris](https://avatars.discourse-cdn.com/v4/letter/k/82dd89/32.png) [@kris](https://community.prismic.io/u/kris)
#### Post date: [October 15, 2021, 9:05am UTC](https://community.prismic.io/t/shareable-preview-link-not-working/7488/1 "2021-10-15T09:05:12Z")

</div>

> [@Shareable preview link gives blank page](https://community.prismic.io/t/shareable-preview-link-gives-blank-page/5581):
>
> I'm using Next.JS hosted on Vercel. After figuring out that CSP was blocking some of the scripts used by the toolbar I've got previews working, and the prismic toolbar renders and seems to function ok ... but there is an error in the console: Uncaught Error: Unexpected message received by the iframe: [object MessageEvent]. Expected setup\_port initialisationMessageHandler https://leeconlin.prismic.io/prismic-toolbar/4.0.5/iframe.html:16 e https://leeconlin.prismic.io/prismic-toolbar/4.0.5/ifram…

@phil, do you have any updates about this regarding Gatsby? Sharable previews have never worked, either for my Nextjs or Gatsby websites - but a client started asking about them so need to find a solution.

Do you have an example Gatsby project where the sharable previews work?

---

<div class="post-metadata">

### Author: ![Phil](https://dub1.discourse-cdn.com/flex013/user_avatar/community.prismic.io/phil/32/14_2.png) [@Phil](https://community.prismic.io/u/Phil)
#### Post date: [October 15, 2021, 12:34pm UTC](https://community.prismic.io/t/shareable-preview-link-not-working/7488/2 "2021-10-15T12:34:29Z")

</div>

Hi @kris,

I wasn't aware of any issues with Gatsby and shareable links, the issues with Next.js are unique to that framework, I'm going to reach out to the team to find out more about this.

Thanks.

---

<div class="post-metadata">

### Author: ![Phil](https://dub1.discourse-cdn.com/flex013/user_avatar/community.prismic.io/phil/32/14_2.png) [@Phil](https://community.prismic.io/u/Phil)
#### Post date: [October 15, 2021, 12:46pm UTC](https://community.prismic.io/t/shareable-preview-link-not-working/7488/4 "2021-10-15T12:46:20Z")

</div>

Can you tell me which Gatsby plugin you are using? Because shareable previews should work really well with Gatsby.

---

<div class="post-metadata">

### Author: ![kris](https://avatars.discourse-cdn.com/v4/letter/k/82dd89/32.png) [@kris](https://community.prismic.io/u/kris)
#### Post date: [October 15, 2021, 1:21pm UTC](https://community.prismic.io/t/shareable-preview-link-not-working/7488/5 "2021-10-15T13:21:50Z")

</div>

I'm using

```auto
"gatsby-plugin-prismic-previews": "^4.1.3",
"gatsby-source-prismic": "^4.1.6",

```

There is an open issue on github regarding that [[v4] Shareable links not working · Issue #403 · prismicio/prismic-gatsby · GitHub](https://github.com/prismicio/prismic-gatsby/issues/403)

If the person is not logged into Prismic, there are not able to preview the shared link

---

<div class="post-metadata">

### Author: ![Phil](https://dub1.discourse-cdn.com/flex013/user_avatar/community.prismic.io/phil/32/14_2.png) [@Phil](https://community.prismic.io/u/Phil)
#### Post date: [October 15, 2021, 1:28pm UTC](https://community.prismic.io/t/shareable-preview-link-not-working/7488/6 "2021-10-15T13:28:21Z")

</div>

Ah, I wasn't aware of this issue. I'll ping Angelo to get an update on this for you.

---

<div class="post-metadata">

### Author: ![angeloashmore](https://dub1.discourse-cdn.com/flex013/user_avatar/community.prismic.io/angeloashmore/32/2685_2.png) [@angeloashmore](https://community.prismic.io/u/angeloashmore)
#### Post date: [October 15, 2021, 9:24pm UTC](https://community.prismic.io/t/shareable-preview-link-not-working/7488/7 "2021-10-15T21:24:32Z")

</div>

Hey @kris,

Apologies for the late reply. I replied to your question on GitHub regarding previews and Gatsby.

GitHub Issue: [[v4] Shareable links not working · Issue #403 · prismicio/prismic-gatsby · GitHub](https://github.com/prismicio/prismic-gatsby/issues/403#issuecomment-944670416)

Reposting here for others:

> Hey @kb1995, sorry for the delayed response - my mistake! Shareable links are supported in Gatsby as normal, but there are some parameters around its usage (this is for previews in general, not just for Gatsby).
> 
> ## If using Chrome, previews will not work in Incognito browsers
> 
> Chrome blocks cross-site cookies which is required for previews to work. The Prismic toolbar sets a cookie on the [prismic.io](http://prismic.io) domain which is then read on your deployed site. Previews are only activated on your site if that cookie is present and readable.
> 
> This means share links will not work in Incognito browsers for the same reason. To test if share links work, copy the link, sign out of Prismic, then open the link in a normal browser. It should load.
> 
> Related link: [Enabling 3rd Party Cookies for Chrome “Incognito” Mode and Safari for Mac | Kaltura Knowledge Center](https://knowledge.kaltura.com/help/enabling-3rd-party-cookies-for-chrome-incognito-mode)
> 
> ## If using Safari, previews will not work unless cross-site cookie are enabled
> 
> Safari blocks cross-site cookies by default. As described above, cross-site cookies are needed to support Prismic previews.
> 
> To enable cross-site cookies in Safari, open Safari's Preferences, navigate to the Privacy section, and uncheck "Prevent cross-site tracking."
> 
> This means share links will not work in Safari browsers for the same reason. Ensure cross-site cookies are allowed in Safari before testing a share link.
> 
> Related link: [Preview mode doesn't load in Safari](https://community.prismic.io/t/preview-mode-doesnt-load-in-safari/860)

---

<div class="post-metadata">

### Author: ![system](https://dub1.discourse-cdn.com/flex013/user_avatar/community.prismic.io/system/32/1746_2.png) [@system](https://community.prismic.io/u/system)
#### Post date: [October 18, 2021, 7:59am UTC](https://community.prismic.io/t/shareable-preview-link-not-working/7488/8 "2021-10-18T07:59:23Z")

</div>

This topic was automatically closed 24 hours after the last reply. New replies are no longer allowed.

---

<div class="post-metadata">

### Author: ![system](https://dub1.discourse-cdn.com/flex013/user_avatar/community.prismic.io/system/32/1746_2.png) [@system](https://community.prismic.io/u/system)
#### Post date: [December 9, 2021, 3:21pm UTC](https://community.prismic.io/t/shareable-preview-link-not-working/7488/9 "2021-12-09T15:21:55Z")

</div>


