I am trying to preview the created snack using iframe as was stated in the documentation. Everything works fine on localhost. However, when the app is deployed on heroku, netlify or other remote servers, I can not preview the created snack as “Access to origin is forbidden” error appear.
Is there a way to fix this problem?
P.S. my code of snack and web preview is similar to the code provided in the documentation (snack/snack-sdk.md at main · expo/snack · GitHub)