Creating iframe to be used in other websites
The problem was solved by installing and enabling Allow site iframing contrib module.


  Drupal 8 has a feature built into core that stops the site from being
  rendered within an iframe, there are good reasons for this -
  https://www.drupal.org/node/2514136 But sometimes you want your site
  in an iframe, so that's what this module does.