On this page
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_headersstring[]-
The list of response headers to expose.
Source
File: wp-includes/rest-api/class-wp-rest-server.php. View all references
$expose_headers = apply_filters( 'rest_exposed_cors_headers', $expose_headers );
Related
Used By
| Used By | Description |
|---|---|
| WP_REST_Server::serve_request() wp-includes/rest-api/class-wp-rest-server.php | Handles serving a REST API request. |
Changelog
| Version | Description |
|---|---|
| 5.5.0 | Introduced. |
© 2003–2022 WordPress Foundation
Licensed under the GNU GPLv2+ License.
https://developer.wordpress.org/reference/hooks/rest_exposed_cors_headers