pnext / three-loader

Point cloud loader for ThreeJS, based on the core parts of Potree
Other
210 stars 90 forks source link

Request authorization headers #10

Closed Zielon closed 6 years ago

Zielon commented 6 years ago

A possibility to change xhr request headers throughout an arrow function. For instance adding the authorization headers.

return potree.loadPointCloud(path, url => url, (input, init) => {
  setAuthorization(init);
  return fetch(input, init);
});

or

return potree.loadPointCloud(path, url => url);