You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hey @loick, thanks for the comprehensive issue again.
I'm curious about this error you're getting:
Any chance you have some Content Security Policy set up on your website? Maybe something like Next.js headers, React Helmet or something similar? If so, can you try disabling/loosening them for the Simulator page? (at least the X-Frame-Options one which prevents a page from being embedded)
This could be caused by a Chrome extension also, if you're not sure about CSP, can you try running it in a guest session to be sure?
No worries! We should try to detect that so we can provide a better error message ☺️
I'm transferring this issue to the Slice Machine repository 🚀
lihbr
changed the title
Slice Simulator does not seem to be working
Provide a better error message when user Content Security Policy prevent the simulator from being embedded
Jul 11, 2023
lihbr
transferred this issue from prismicio/prismic-react
Jul 11, 2023
Hi,
The team decided to not prioritize a fix for this issue for now. I close this issue, it can be used as a reference for any user that encounters the problem in the future.
Hi, I'm trying the Slice Simulator and it does not seem to be working for me. Here is what I get:
Context
I'm using this documentation: https://prismic.io/docs/technical-reference/slicemachine-adapter-next
So I basically have in my component:
This component is then used in a Page component within my app:
Might help as well, here is my slicemachine config:
And these are the prismic versions I'm using:
The only package I'm not up to date on is the slice machine because of the other bug reported here: prismicio/prismic-react#189
Please, let me know if I can be of any help.
👋
The text was updated successfully, but these errors were encountered: