WordPress at Your Fingertips
filter is not described

rest_exposed_cors_headers filter-hook . WP 5.5.0

Filters the list of response headers that are exposed to REST API CORS requests.

Usage

add_filter( 'rest_exposed_cors_headers', 'filter_function_name_8579' );
function filter_function_name_8579( $expose_headers ){
	// filter...

	return $expose_headers;
}
$expose_headers(string[])
The list of response headers to expose.

Changelog

Since 5.5.0 Introduced.

Where the hook is called

WP_REST_Server::serve_request()
rest_exposed_cors_headers
wp-includes/rest-api/class-wp-rest-server.php 291
$expose_headers = apply_filters( 'rest_exposed_cors_headers', $expose_headers );

Where in WP core the hook is used WordPress

Usage not found.