Closed
Description
Hi! We have recently megred #46, but unfortunately, it brings a bug. When we call "add" method
https://github.com/php-pm/php-pm-httpkernel/blob/master/Bridges/HttpKernel.php#L183, we add headers from React request, but we can not track headers which were added by Symfony request from ServerBag. As it uses superglobal array $_SERVER, which only grows during application lifetime. For example:
I send regular http request, after that I send ajax request, all furtherst requests will have X-Request-With: XMLHttpRequest header. My propose is to return replace method, but move authorization headers from $_SERVER to $headers.
Metadata
Metadata
Assignees
Labels
No labels