sitegeist / offcors
Neos-CMS / Flow-Framework 的 CORS 中间件
v1.0.2
2023-04-04 12:57 UTC
Requires
- php: >=8.1.0
- neos/flow: *
README
Neos-CMS / Flow-Framework 的 CORS 中间件
Neos CMS 的一个非常基础的 CORS 实现(目前)
作者与赞助商
- Martin Ficzel - ficzel@sitegeist.de
- Melanie Wüst - wuest@sitegeist.de
本包的开发和公开发布得到了我们雇主https://www.sitegeist.de的慷慨赞助。
配置
Sitegeist: OffCORS: # allow credentials via cors (bool) allowCredentials: false # allowed cors origins (array or csv-string) allowOrigins: "*" # allowed cors methods (array or csv-string) allowMethods: "GET" # allowed cors headers (array or csv-string) allowHeaders: "" # exposed cors headers (array or csv-string) exposeHeaders: "" # max age cors informations (int) maxAge: 86400
安装
Sitegeist.OffCORS 通过 Packagist 提供。只需运行 composer require sitegeist/offcors
即可安装。我们使用语义化版本控制,所以每次重大更改都会增加主版本号。
贡献
我们非常欢迎贡献。请向我们发送 pull request。