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

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


Parameters Parameters

$expose_headers

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


Top ↑

Source Source

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

View on Trac



Top ↑

Changelog Changelog

Changelog
Version Description
5.5.0 Introduced.

Top ↑

User Contributed Notes User Contributed Notes

You must log in before being able to contribute a note or feedback.