W3cubDocs

/WordPress

apply_filters( 'rest_exposed_cors_headers', string[] $expose_headers )

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

Parameters

$expose_headers

(string[]) The list of headers to expose.

Source

File: wp-includes/rest-api/class-wp-rest-server.php

View on Trac

Changelog

Version Description
5.5.0 Introduced.

© 2003–2019 WordPress Foundation
Licensed under the GNU GPLv2+ License.
https://developer.wordpress.org/reference/hooks/rest_exposed_cors_headers