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

The list of response headers to expose.


Source

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

View on GitHub


Changelog

Changelog
Version Description
5.5.0 Introduced.