Magento 2.3.5违反了以下内容安全政策

问题描述

我安装了ebay模块m2pro,但是由于magento csp策略的原因,它无法正常工作,下面是一些屏幕截图:

screen 1

我注意到有2个脚本被阻止了:

screen 2

screen 3

screen 4

如何在不禁用CSP的情况下解决此问题? 谢谢

解决方法

您必须将域添加到CSP白名单:https://devdocs.magento.com/guides/v2.3/extension-dev-guide/security/content-security-policies.html#add-a-domain-to-the-whitelist

对于图像,您可以添加以下内容: https://

来自https的所有图像都不会被屏蔽。