yireo-training/magento2-corshack
Composer 安装命令:
composer require yireo-training/magento2-corshack
包简介
Magento 2 module to add some hacks to GraphQL API
README 文档
README
The new Magento 2 GraphQL system could be used with GraphQL clients
(like Apollo or even Axios) to fetch data from Magento. Most of these
clients use an HTTP request OPTIONS to see if CORS restrictions apply.
This module adds an OPTIONS check to the GraphQL API. Also, this module
adds Cross Origin headers (currently hard-coded to
http://localhost:3000).
Installation
composer require yireo-training/magento2-corshack
./bin/magento module:enable Yireo_CorsHack
Configuration
Navigate to Advanced > Yireo CorsHack and add the schema + domain URL to the Origin Domain option.
By default, a wildcard (*) is configured allowing all origin domains.
Examples of values that can be configured:
In general the configuration value includes schema and domain name. It also includes the port number if it is not standard.
统计信息
- 总下载量: 2.3k
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 12
- 点击次数: 0
- 依赖项目数: 0
- 推荐数: 0
其他信息
- 授权协议: OSL-3.0
- 更新时间: 2018-07-05