[DOC] Mention CORS is required when external URLs are allowed in Vega (#118862)

* [DOC] Mention CORS is required when external URLs are allowed in Vega

Mention CORS is required when external URLs are allowed in Vega.

* Update docs/user/dashboard/vega-reference.asciidoc

Co-authored-by: Kaarina Tungseth <kaarina.tungseth@elastic.co>

* Update docs/user/dashboard/vega-reference.asciidoc

Co-authored-by: Kaarina Tungseth <kaarina.tungseth@elastic.co>

Co-authored-by: Kaarina Tungseth <kaarina.tungseth@elastic.co>
This commit is contained in:
Luca Belluccini 2022-03-16 21:30:33 +00:00 committed by GitHub
parent 0cd251ec4d
commit bb7ae01362
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -351,6 +351,9 @@ a configuration option for changing the tooltip position and padding:
*Vega* can load data from any URL. To enable, set `vis_type_vega.enableExternalUrls: true` in `kibana.yml`,
then restart {kib}.
The files that the external URLs load must allow https://developer.mozilla.org/en-US/docs/Web/HTTP/CORS[CORS].
The remote URL must include `Access-Control-Allow-Origin`, which allows requests from the {kib} URL.
You can make the current time range part of the external as a millisecond timestamp by using the placeholders `%timefilter_min%` and `%timefilter_max%`, e.g. `http://example.com?min=%timefilter_min%`.
[float]