下载跨域包
https://download.csdn.net/download/qq_29099209/87248399
代码放到 目录 app/code/SplashLab/CorsRequests
执行下面命令更新一下
bin/magento setup:upgrade && bin/magento setup:static-content:deploy -f && bin/magento cache:flush && php bin/magento setup:di:compile
目录 Stores -> Configuration, go to General -> Web -> CORS Requests Configuration.
进行配置即可