-
Notifications
You must be signed in to change notification settings - Fork 426
Description
- Description of what I am trying to achieve
I am updating my website www.bzin.net to have a blog and other pages while hosted on Netlify. The webpage uses Craft CMS to get its data and in the frontend the technical stack is Sapper and Svelte. At this moment I am trying to enable the preview feature from the CMS when its on its headless mode. This means that updating my data in Craft CMS I should be able to see current changes on an iframe before trigger a deployment. I am able to see and set this preview if I do not use Netlify dev and if I directly call my API endpoint. Although my intention is to use lambda functions on Netlify so I can do this in a more secure way, without exposing my API and keys in the javascript.
- Do you want to request a feature or report a bug?
bug
- What is the current behavior?
netlify dev
breaks when url of project is loaded in an iframe.
- If the current behavior is a bug, please provide the steps to reproduce.
1 - run netlify dev
2 - open the dev url in a browser where its in an iframe
See attached screenshot:
PS: This was posted from a suggestion in https://community.netlify.com/t/netlify-dev-crashes-when-using-url-in-an-iframe/4738/4
- What is the expected behavior?
to be able to continue developing when opening the url in an iframe.
- Local Environment Information
System:
OS: macOS 10.15.1
CPU: (8) x64 Intel(R) Core(TM) i7-7820HQ CPU @ 2.90GHz
Binaries:
Node: 12.4.0 - ~/.nvm/versions/node/v12.4.0/bin/node
Yarn: 1.19.0 - /usr/local/bin/yarn
npm: 6.12.1 - ~/.nvm/versions/node/v12.4.0/bin/npm
Browsers:
Chrome: 78.0.3904.97
Firefox: 69.0.1
Safari: 13.0.3