rest_exposed_cors_headers

rest_exposed_cors_headers

Hook Type: filter

See hook in core

Displaying hooks found in version: wordpress-6.7

apply_filters('rest_exposed_cors_headers') is found 1 times:

  • /wp-includes/rest-api/class-wp-rest-server.php line 406
    		 *
    		 * @param string[]        $expose_headers The list of response headers to expose.
    		 * @param WP_REST_Request $request        The request in context.
    		 */
    		$expose_headers = apply_filters( 'rest_exposed_cors_headers', $expose_headers, $request );
    
    		$this->send_header( 'Access-Control-Expose-Headers', implode( ', ', $expose_headers ) );
    
    		$allow_headers = array(
    			'Authorization',
    			'X-WP-Nonce',