lumen-cors:Lumen PHP框架的CORS模块

时间:2021-05-23 05:08:51
【文件属性】:
文件名称:lumen-cors:Lumen PHP框架的CORS模块
文件大小:20KB
文件格式:ZIP
更新时间:2021-05-23 05:08:51
cors lumen lumen-php-framework lumen-cors nord-software 流明CORS 适用于(CORS)模块。 要求 PHP 7.1或更高版本 5.4或更高 用法 安装 运行以下命令以通过Composer安装软件包: composer require nordsoftware/lumen-cors 配置 将config/cors.php的配置模板复制到应用程序的config目录中,然后根据需要进行修改。 有关更多信息,请参见流明文档中的“配置文件”部分。 可用的配置选项: allow_origins array允许执行请求的来源,默认为空数组。 模式也被接受,例如* .foo.com allow_methods array允许的HTTP方法,默认为空数组 allow_headers array允许的HTTP标头,默认为空数组 allow_credentials boolean是否存在凭据时是否可以公开响应,默认为false exclude_hea
【文件预览】:
lumen-cors-master
----.gitignore(36B)
----phpstan.neon(219B)
----README.md(3KB)
----CHANGELOG.md(5KB)
----.github()
--------ISSUE_TEMPLATE.md(302B)
--------PULL_REQUEST_TEMPLATE.md(140B)
--------workflows()
--------CONTRIBUTING.md(311B)
----.styleci.yml(56B)
----tests()
--------unit()
--------_support()
--------unit.suite.yml(144B)
--------_bootstrap.php(191B)
--------_output()
----LICENSE(1KB)
----composer.json(1KB)
----RELEASING.md(700B)
----.scrutinizer.yml(43B)
----src()
--------CorsMiddleware.php(937B)
--------CorsServiceProvider.php(1KB)
--------Contracts()
--------CorsService.php(8KB)
----codeception.yml(475B)
----config()
--------cors.php(2KB)

网友评论