CORS¶
This is a filter which handles Cross-Origin Resource Sharing requests based on route or virtual host settings. For the meaning of the headers please refer to the pages below.
- https://developer.mozilla.org/en-US/docs/Web/HTTP/Access_control_CORS
- https://www.w3.org/TR/cors/
- v2 API reference
- This filter should be configured with the name envoy.cors.
Statistics¶
The CORS filter outputs statistics in the <stat_prefix>.cors.* namespace.
Note
Requests that do not have an Origin header will be omitted from statistics.
Name | Type | Description |
---|---|---|
origin_valid | Counter | Number of requests that have a valid Origin header. |
origin_invalid | Counter | Number of requests that have an invalid Origin header. |