You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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?
Hi @barryvdh. I have made adjustments to this issue again and submitted a Proposal and PR. If you have any suggestions, please leave a message in the PR or Proposal issue. I will close this duplicate issue. Thanks.
I have a requirement. The
Access-Control-Expose-Headers
response header has different response values on different routes. Currently, thecos.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
?The text was updated successfully, but these errors were encountered: