在使用NPM的时候,感觉比较迷,不清楚如何自定义header从而解决Magento2的CORS问题。
经过查阅NPM官方文档发现,直接在 Advenced
里增加 Custom Nginx Configuration
即可解决.
sample:
proxy_set_header 'Access-Control-Allow-Origin' "https://www.magentochina.org";
在使用NPM的时候,感觉比较迷,不清楚如何自定义header从而解决Magento2的CORS问题。
经过查阅NPM官方文档发现,直接在 Advenced
里增加 Custom Nginx Configuration
即可解决.
sample:
proxy_set_header 'Access-Control-Allow-Origin' "https://www.magentochina.org";