It's a laminas/mezzio API using Swoole with the following config:
return [
'cors' => [
'options' => [
'origin' => '*',
'headers.allow' => [
// "simple headers" are always allowed
'Accept',
'Accept-Language',
'Content-Language',
// Content-Type is a "simple header",
// but only with a MIME type of its parsed value (ignoring parameters)
// of either application/x-www-form-urlencoded, multipart/form-data, or text/plain
'Content-Type',
// allow additional headers
'Authorization',
],
'headers.expose' => ['Content-Length', 'Date'],
'cache' => 60 * 5,
],
],
];
I'm getting an AssertionError since 1.4 on running integration tests:
POST http://localhost:8080/oauth2/token
It's a laminas/mezzio API using Swoole with the following config: