# Preview mode issue Firefox

**URL:** <https://community.prismic.io/t/preview-mode-issue-firefox/7932>\
**Category:** Developing with Prismic\
**Tags:** nextjs\
**Created:** [November 17, 2021, 3:05pm UTC](https://community.prismic.io/t/preview-mode-issue-firefox/7932 "2021-11-17T15:05:36Z")\
**Posts on this page:** 9\
**Page:** 1

<div class="post-metadata">

**Author:** ![david8](https://dub1.discourse-cdn.com/flex013/user_avatar/community.prismic.io/david8/32/3292_2.png) [@david8](https://community.prismic.io/u/david8)\
**Post date:** [November 17, 2021, 3:05pm UTC](https://community.prismic.io/t/preview-mode-issue-firefox/7932/1 "2021-11-17T15:05:36Z")

</div>

We’re trying to get our pages set up to support preview and are running into issues, specifically with Firefox (Chrome works fine). I’m getting this error in the Firefox console:

`Cookie "io.prismic.preview" has been rejected for invalid domain.`

Is there something we have to do to allow the prismic.js file to set the `io.prismic.preview` cookie? We've gone through all the documentation on how to set up previews and none of the [Troubleshooting steps](https://community.prismic.io/t/troubleshooting-previews/5449) seem to help either.

Thanks!  
David

---

<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:** [November 18, 2021, 5:49pm UTC](https://community.prismic.io/t/preview-mode-issue-firefox/7932/2 "2021-11-18T17:49:02Z")

</div>

Hey David,

You might need to enable 3rd party cookies.

[https://support.mozilla.org/en-US/kb/third-party-cookies-firefox-tracking-protection](https://support.mozilla.org/en-US/kb/third-party-cookies-firefox-tracking-protection)

Thanks.

---

<div class="post-metadata">

**Author:** ![david8](https://dub1.discourse-cdn.com/flex013/user_avatar/community.prismic.io/david8/32/3292_2.png) [@david8](https://community.prismic.io/u/david8)\
**Post date:** [November 19, 2021, 6:38pm UTC](https://community.prismic.io/t/preview-mode-issue-firefox/7932/4 "2021-11-19T18:38:41Z")

</div>

Unfortunately, that doesn't seem to help. I tried disabling cookie blocking entirely as well as adding our prismic site to the exception list. I'm still getting the same error.

---

<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:** [November 22, 2021, 5:23pm UTC](https://community.prismic.io/t/preview-mode-issue-firefox/7932/5 "2021-11-22T17:23:30Z")

</div>

OK, in that case, I'm not sure what the issue is, but it might be to do with Firefox changing their cookie settings. I'll report this to the team to get more information about what could be happening.

---

<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:** [November 22, 2021, 5:36pm UTC](https://community.prismic.io/t/preview-mode-issue-firefox/7932/6 "2021-11-22T17:36:01Z")

</div>

Also, I can't seem to replicate the issue on my side with the latest Firefox, I get some warnings about lots of different cookies with the `samesite` tag, but the previews work. What version of Firefox are you using?

Thanks

---

<div class="post-metadata">

**Author:** ![david8](https://dub1.discourse-cdn.com/flex013/user_avatar/community.prismic.io/david8/32/3292_2.png) [@david8](https://community.prismic.io/u/david8)\
**Post date:** [November 29, 2021, 6:41pm UTC](https://community.prismic.io/t/preview-mode-issue-firefox/7932/8 "2021-11-29T18:41:26Z")

</div>

I was using Firefox 94.0.1

---

<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:** [November 30, 2021, 2:22pm UTC](https://community.prismic.io/t/preview-mode-issue-firefox/7932/9 "2021-11-30T14:22:50Z")

</div>

I tested with that version of Firefox and while I get the same warning (`Cookie "io.prismic.preview" has been rejected for invalid domain.`), previews are still working for me.

Can you try with these settings?

 ![Screenshot 2021-11-30 at 15.22.36](https://europe1.discourse-cdn.com/flex013/uploads/prismic/original/2X/c/ce815c9a1d9c978adb10a9eade19d11fbdde9fed.png)

---

<div class="post-metadata">

**Author:** ![david8](https://dub1.discourse-cdn.com/flex013/user_avatar/community.prismic.io/david8/32/3292_2.png) [@david8](https://community.prismic.io/u/david8)\
**Post date:** [January 13, 2022, 2:29pm UTC](https://community.prismic.io/t/preview-mode-issue-firefox/7932/11 "2022-01-13T14:29:43Z")

</div>

I finally figured out the issue with Firefox! I have the Firefox Multi-Account Containers extension installed so that I can isolate our local dev, staging, and production environments from each other. When I go to preview a Prismic document, it opens the site in one of those environment specific containers, apparently losing any cookies that were set by the Prismic dashboard. When I disable the extension, previews work correctly in Firefox.

---

<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:** [January 14, 2022, 2:05pm UTC](https://community.prismic.io/t/preview-mode-issue-firefox/7932/12 "2022-01-14T14:05:24Z")

</div>

Awesome thanks for sharing your solution 🙂
