wpseek.com
Eine auf WordPress spezialiserte Suchmaschine für Entwickler und Theme-Autoren
rest_allowed_cors_headers › WordPress Filter Hooks
Seit6.3.0
Veraltetn/v
› apply_filters( 'rest_allowed_cors_headers', $allow_headers, $request )
| Parameter: (2) |
|
| Definiert in: | |
| Codex: |
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.Ähnliche Funktionen: rest_send_cors_headers, rest_send_allow_header, get_allowed_themes, rest_get_allowed_schema_keywords, register_column_headers, send_origin_headers