stack-cors icon indicating copy to clipboard operation
stack-cors copied to clipboard

Cross-origin resource sharing library and stack middleware.

Results 4 stack-cors issues
Sort by recently updated
recently updated
newest added

``` 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...