cesium-unity icon indicating copy to clipboard operation
cesium-unity copied to clipboard

Custom cookie to http-request

Open TuomasK1989 opened this issue 2 years ago • 3 comments

Hi, I would like to stream 3D Tiles from AWS with the "Tileset Source" -Option set to "From Url". However my content is private and I use custom cookies in http request header to authenticate request. Is it possible to set custom cookies or somehow customize http requests in Unity/c# side or how can I achieve this?

Br, TMK

TuomasK1989 avatar Dec 01 '22 08:12 TuomasK1989

@TuomasK1989 that's not currently possible without modifying Cesium for Unity itself, but we'll consider it an enhancement request.

The best you can do right now is include authentication information in query parameters.

kring avatar Dec 01 '22 10:12 kring

Hi, I noticed that there has been some development considering request headers. Is it possible to use custom headers in the current or upcoming release?

TuomasK1989 avatar Apr 26 '23 19:04 TuomasK1989

No, the recent work made sure headers added to previous requests could be retrieved from the request object. Adding the ability to specify request headers via configuration on the tileset isn't on our near-term roadmap, but we'd welcome a community contribution to add it. It should be relatively straightforward.

kring avatar Apr 27 '23 12:04 kring