magento-2-cors-requests:启用从已配置的原始域到Magento 2 API的跨域资源共享(CORS)请求

时间:2024-06-11 23:06:21
【文件属性】:

文件名称:magento-2-cors-requests:启用从已配置的原始域到Magento 2 API的跨域资源共享(CORS)请求

文件大小:14KB

文件格式:ZIP

更新时间:2024-06-11 23:06:21

PHP

SplashLab的Magento 2 CORS跨域请求 通过添加适当的HTTP标头并处理飞行前OPTIONS请求,该模块允许您在Magento 2中启用跨域资源共享(CORS)REST API请求。 这可用于允许AJAX和其他请求从另一个域(或子域)对Magento 2 REST API的请求。 如何安装 1.通过作曲家 编辑composer.json { "repositories": [ { "type": "vcs", "url": "https://github.com/splashlab/magento-2-cors-requests" } ], "require": { "splashlab/magento-2-cors-requests": "dev


【文件预览】:
magento-2-cors-requests-master
----composer.json(809B)
----Model()
--------CorsCheck.php(1KB)
----registration.php(220B)
----LICENSE(10KB)
----Api()
--------CorsCheckInterface.php(324B)
----Plugin()
--------CorsRequestOptionsPlugin.php(823B)
--------CorsHeadersPlugin.php(3KB)
--------CorsRequestMatchPlugin.php(2KB)
----README.md(3KB)
----etc()
--------adminhtml()
--------di.xml(866B)
--------module.xml(258B)
--------config.xml(438B)
--------acl.xml(719B)
--------webapi.xml(544B)

网友评论