我在 wordpress 站点(不同的域)中嵌入了一个 muatic 表单,当我单击表单中的下载时,它给出了以下错误:
Refused to display 'https://mymauticinstance.com/form/submit?formId=1' in a frame because it set 'X-Frame-Options' to 'sameorigin'
所以我将httpd.conf中的配置修改为:
“允许来自https://www.mywordpresssite.com/ ”
这给出了错误:
Invalid 'X-Frame-Options' header encountered : 'ALLOWFROM is not a recognized directive
所以我将其更改为 ALLOWALL。
但现在我点击下载按钮后,它卡在“请稍候”。当我在 Chrome 中检查网络响应时,我看到错误是:
Request URL: https://mymauticinstance.com/media/js/mautic-form.js
Request Method: GET
Status Code: 301 Moved Permanently (from disk cache)
Remote Address: 1.2.3.4:443
Referrer Policy: no-referrer-when-downgrade
我还尝试从 Mautic Forms 页面中“重建缓存”。
注意:我使用的是托管在 AWS Bitnami 实例上的 Chrome、Mautic 2.15.1