rerun-io / rerun

Visualize streams of multimodal data. Free, fast, easy to use, and simple to integrate. Built in Rust.
https://rerun.io/
Apache License 2.0
6.68k stars 337 forks source link

Document CORS shenanigans for using loading RRD from external servers using web viewer #8036

Open teh-cmc opened 2 weeks ago

teh-cmc commented 2 weeks ago

@makeecat posted this in discord ( :heart: ):

If you ever want to use rerun webviewer to load a file from your own server / website, make sure you setup CORS (cross-origin resource sharing) headers including Access-Control-Allow-Origin="https://rerun.io", Access-Control-Allow-Methods="GET,OPTIONS", Access-Control-Allow-Headers="Content-Type".

You can use Custom filter by filtering out certain path directing to the rrd file you want to shrea with the rerun web viewer.

If you are using cloudfare, please follow Rules -> Transform Rules -> Modify Response Header -> Create rule.

We should probably write that down in the docs somewhere.