У меня есть 2 сайта:
- сайт на друпал
- веб-сайт мадженто
На моем веб-сайте drupal я хочу отобразить iFrame моего веб-сайта magento, но это вызывает ошибку:
Refused to display 'https://magento_site.com?_redirect_url=https://drupal_site.com' in a frame because an ancestor violates the following Content Security Policy directive: "frame-ancestors https://drupal_site.com https://magento_site.com".
Я видел, что такая ошибка является проблемой отображаемого веб-сайта, который не позволяет другому веб-сайту отображать его.
Как я могу это допустить? Как мне нужно изменить, чтобы он работал?
Спасибо!






Проблема связана с Content-Security-Policy, поэтому вы можете справиться с этим, установив модуль Content-Security-Policy.
Configure a Content-Security-Policy header for your Drupal site. Features Integrates with Drupal's Libraries API to automatically generate a policy for your site Up-to-date with the latest CSP Level 3 Working Draft Policy is automatically optimized to remove duplicate directives and reduce header length Integration with Reporting module for local policy violation logging Integration with Report-URI.com for remote policy violation logging
какая у тебя версия друпала?