Files
Filename | Hook Type | Line Number | PHP Doc |
---|---|---|---|
wp-includes/rest-api/class-wp-rest-server.php | apply_filters | 357 | /** * Filters the list of request headers that are allowed for REST API CORS requests. * * The allowed headers are passed to the browser to specify which * headers can be passed to the REST API. By default, we allow the * Content-* headers needed to upload files to the media endpoints. * As well as the Authorization and Nonce headers for allowing authentication. * * @since 5.5.0 * * @param string[] $allow_headers The list of request headers to allow. */ |
Hook Parameters
Parameter Type | Name | Description |
---|---|---|
string[] | $allow_headers | The list of request headers to allow. |