首页
学习
活动
专区
圈层
工具
发布
社区首页 >问答首页 >http 403试图在Magento电子商务平台上为某些用户上传图像后,来自CloudFront的错误

http 403试图在Magento电子商务平台上为某些用户上传图像后,来自CloudFront的错误
EN

Stack Overflow用户
提问于 2020-01-22 17:22:27
回答 1查看 1.6K关注 0票数 1

我们正在使用Magento电子商务平台作为我们的购物网站在AWS Cloudfront后面。在create页面WYSIWYG中,有一个上传图像的选项。一些用户报告403错误是在他们选择图像并按下上传按钮后发生的,而对于其他用户来说,上传图像是有效的。

当403发生在这些用户中时,我在nginx访问或错误日志中没有看到任何错误消息。但是,我确实在CloudFront日志中看到了以下错误:

代码语言:javascript
复制
date        time        x-edge-location sc-bytes    c-ip            cs-method   cs(Host)                        cs-uri-stem                                                                                                 sc-status   cs(Referer)                                                                                                 cs(User-Agent)                                                                      cs-uri-query            cs(Cookie)  x-edge-result-type  x-edge-request-id           x-host-header           cs-protocol cs-bytes    time-taken  x-forwarded-for     ssl-protocol    ssl-cipher                  x-edge-response-result-type cs-protocol-version fle-status  fle-encrypted-fields    c-port      time-to-first-byte  x-edge-detailed-result-type sc-content-type             sc-content-len sc-range-start   sc-range-end
2020-01-20  10:22:13    MAN50-C1        570         xx.xx.xx.xx     POST        jhgfjgfjsd.cloudfront.net       /index.php/ctrl-web-team/cms_wysiwyg_images/upload/type/image/key/88fdfad6d6b726871662108fad3d3de3/         403         https://www.example.com/index.php/ctrl-web-team/cms_page/new/key/c7e419205e2c23c854cd4ea1d741bdad/          Mozilla/5.0%20(X11;%20Linux%20x86_64;%20rv:72.0)%20Gecko/20100101%20Firefox/72.0    SID=gm892fbgp7lep0      -           Error               Z6p-RiAuq7RA7ryi3iNHD==     www.example.com         https       16778       0.844       -                   TLSv1.2         ECDHE-RSA-AES128-GCM-SHA256 Error                       HTTP/2.0            -           -                       42776       0.844               Error                       text/html                   134             -               -
2020-01-20  10:22:17    MAN50-C1        1547        xx.xx.xx.xx     POST        jhgfjgfjsd.cloudfront.net       /index.php/ctrl-web-team/cms_wysiwyg_images/contents/type/image/key/0f36c05043efc3435jj342d6a3071e6a47/     200         https://www.example.com/index.php/ctrl-web-team/cms_page/new/key/c7e419205e2c23c854cd4ea1d741bdad/          Mozilla/5.0%20(X11;%20Linux%20x86_64;%20rv:72.0)%20Gecko/20100101%20Firefox/72.0    isAjax=true             -           Miss                nu8CAYvBxQnpvMbAhdgdf=      www.example.com         https       545         0.612       -                   TLSv1.2         ECDHE-RSA-AES128-GCM-SHA256 Miss                        HTTP/2.0            -           -                       42776       0.612               Miss                        text/html;%20charset=UTF-8  -               -               -

任何指导都很感激。

EN

回答 1

Stack Overflow用户

回答已采纳

发布于 2020-01-27 15:05:07

此错误发生在AWS WAF (web应用程序防火墙)阻止某些请求时发生的。检查WAF中与ACL关联的规则。

我必须在AWS中定义一个额外的"String and regex匹配“规则,以允许请求。

票数 4
EN
页面原文内容由Stack Overflow提供。腾讯云小微IT领域专用引擎提供翻译支持
原文链接:

https://stackoverflow.com/questions/59865109

复制
相关文章

相似问题

领券
问题归档专栏文章快讯文章归档关键词归档开发者手册归档开发者手册 Section 归档