Skip to content

[Feature request] Customize Access-Control-Expose-Headers response values for different routes #26

Closed
@yinheli

Description

@yinheli

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?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions