I am trying to upload a file in vtk.js .gz format from a server that needs authentication.
I need add Authorization header to vtkHttpDataSetReader.
How can I add headers to vtkHttpDataSetReader ?
const reader = vtkHttpDataSetReader.newInstance({ fetchGzip: true });
reader.setUrl("https://example.com/data.vtkjs", {loadData: true, headers:{"Authorization": "ZBXHSsxcss...."} }).then(() => {...});
This code does not work the header is not added.