Filter hook 'rest_exposed_cors_headers'

in WP Core File wp-includes/rest-api/class-wp-rest-server.php at line 406

Description

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

Occurrences

Filename Line Number
wp-includes/rest-api/class-wp-rest-server.php 406

Parameters

Type Name Description
string[] $expose_headers The list of response headers to expose.
WP_REST_Request $request The request in context.

PHP Doc

/**
		 * Filters the list of response headers that are exposed to REST API CORS requests.
		 *
		 * @since 5.5.0
		 * @since 6.3.0 The `$request` parameter was added.
		 *
		 * @param string[]        $expose_headers The list of response headers to expose.
		 * @param WP_REST_Request $request        The request in context.
		 */