问题描述
我安装了ebay模块m2pro,但是由于magento csp策略的原因,它无法正常工作,下面是一些屏幕截图:
我注意到有2个脚本被阻止了:
如何在不禁用CSP的情况下解决此问题? 谢谢
解决方法
您必须将域添加到CSP白名单:https://devdocs.magento.com/guides/v2.3/extension-dev-guide/security/content-security-policies.html#add-a-domain-to-the-whitelist
对于图像,您可以添加以下内容:
来自https的所有图像都不会被屏蔽。