I have a requirement. The Access-Control-Expose-Headers response header has different response values on different routes. Currently, the cos.php configuration is uniformly configured, but I don't want to return redundant data like this. So I want to ask if there is any way to achieve this requirement?
Can I submit a PR to modify the method at https://github.com/fruitcake/php-cors/blob/master/src/CorsService.php#L261 so that it first obtains the Access-Control-Expose-Headers response header of $response and then responds by merging $this->exposedHeaders?
I have a requirement. The
Access-Control-Expose-Headersresponse header has different response values on different routes. Currently, thecos.phpconfiguration is uniformly configured, but I don't want to return redundant data like this. So I want to ask if there is any way to achieve this requirement?Can I submit a PR to modify the method at https://github.com/fruitcake/php-cors/blob/master/src/CorsService.php#L261 so that it first obtains the
Access-Control-Expose-Headersresponse header of$responseand then responds by merging$this->exposedHeaders?