Yii Middleware 1.0
2023-05-22
926次浏览
Yii Middleware 1.0 has been released. The package contains a set of the following middleware:
CorsAllowAll
. Adds CORS headers to the response.ForceSecureConnection
Redirects insecure requests from HTTP to HTTPS, and adds headers necessary to enhance the security policy.HttpCache
. Implements client-side caching by utilizing theLast-Modified
andETag
HTTP headers.IpFilter
. Allows access from specified IP ranges only and responds with 403 for all other IPs.Locale
. Supports locale-based routing and configures URL generator.Redirect
. Generates and adds aLocation
header to the response.Subfolder
. Supports routing when the entry point of the application isn't directly at the webroot.TagRequest
. Tags request with a random value that could be later used for identifying it.
The code coverage with unit tests is complete, static analysis meets the requirements of Psalm level 1.
At the later stage of the development it was decided to extract the proxy related middleware to a separate package - Yii Proxy Middleware.
新闻归档
热门标签
- yii3
- 扩展
- 发布
- yii2
- debug
- auth client
- view
- bootstrap
- release
- html
- redis
- apidoc
- Yii 2.0
- Yii 1.1
- mongodb
- mailer
- extensions
- twig
- gii
- queue
- runner
- http 客户端
- console
- validation
- cache
- sphinx
- widget
- hydrator
- translator
- symfonymailer
- db
- http
- log
- error handler
- config
- swiftmailer
- 图书
- imagine
- assets
- i18n
- IDE
- swagger
- elasticsearch
- router
- csrf
- smarty
- definitions
- logging
- fastroute
- user