stack-cors
stack-cors copied to clipboard
Cross-origin resource sharing library and stack middleware.
CorsService.php is appending 'Origin' to first vary header and chopping of rest of the vary header
``` public function varyHeader(Response $response, $header): Response { if (!$response->headers->has('Vary')) { $response->headers->set('Vary', $header); } elseif (!in_array($header, explode(', ', $response->headers->get('Vary')))) { $response->headers->set('Vary', $response->headers->get('Vary') . ', ' . $header); } return $response;...
I *think* this should work; definitely needs manual testing too! Resolves #105
Resolves #105 Replaced #107 When multiple Vary headers are set, Symfony only returns the first one. When replacing the Vary header, it removes the 2nd one. This changes behavior so...