dev-master
9999999-devPAC CORS middleware
MIT
The Requires
- http-interop/http-server-handler ^1.0
- http-interop/http-server-middleware ^1.0
- neomerx/cors-psr7 ^1.0
- php >=7.1
The Development Requires
psr-7 cors psr-15
Wallogit.com
2017 © Pedro Peláez
PAC CORS middleware
This is middleware for Cross-Origin Resource Sharing (CORS) compliant with the proposed PSR-15 middleware interface. It is also compliant with PSR-7 HTTP message interfaces., (*1)
Add the CorsMiddlewareExtension class to your app kernel., (*2)
class AppKernel extends PacKernel
{
protected function appendedExtensions(): array
{
return [
new CorsMiddlewareExtension(),
];
}
}
In one of your config.yml files add, (*3)
cors_middleware:
default:
allow_credentials: false
allow_origin: []
allow_headers: []
allow_methods: []
expose_headers: []
max_age: 0
PAC CORS middleware
MIT
psr-7 cors psr-15