rest_exposed_cors_headers WordPress Filter Hook
The rest_exposed_cors_headers hook allows you to modify the headers that are exposed to the client when making a CORS request. This can be useful if you want to add or remove headers, or change the values of existing headers.
apply_filters( 'rest_exposed_cors_headers', string[] $expose_headers ) #
Filters the list of response headers that are exposed to REST API CORS requests.
Parameters
- $expose_headers
(string[])The list of response headers to expose.
Source
Changelog
Version | Description |
---|---|
5.5.0 | Introduced. |