Forum Index \ DriveHQ Customer Support Forum \
Read/Reply : 26042/3
  • mingonn
  • (2 posts)

 Hi,

Having trouble accessing my files via http using the Cesium spatial viewer.  Same file works fine hosted on DropBox using a shared link but throws an error using the published http path from DriveHQ.  The developers suggest you don't have proper CORS headers for cross platform file transfer set up.

 

Here is the thread with the URLs I am trying to get working.

groups.google.com/forum/#!topic/cesium-dev/lO5eMb7oxug

 

 

 
Any help would be great.

12/4/2017 8:09:04 PM

  • DriveHQSupport_
  • (650 posts)
Subject: Re:Issues accessing http links using Cesium web based spatial viewer

We checked it and noticed two unrelated issues:

(1) The first issue is very easy.  Your script requires HTTPS based URLs. In your example links, you used HTTP and FTP based URLs. Please change to HTTPS based URLs.

(2) The second issue is indeed related with CORS headers. You don't need CORS headers to download files directly with a URL, or download files on DriveHQ.com or an embedded DriveHQ iFrame.  In your case, you need to download a file hosted on DriveHQ from a 3rd party website using Javascript. DriveHQ does not require CORS headers; but your browser prevented Javascript from downloading files from another website without CORS headers. We have added two HTTP headers in the response:

Access-Control-Allow-Origin

 

 

Access-Control-Expose-Headers

It is working for you now. Please let us know if you have any more questions.

 


Reply
12/6/2017 9:08:45 AM

  • mingonn
  • (2 posts)
Subject: Re:Issues accessing http links using Cesium web based spatial viewer

 That's awsome, thank's so much for sorting it out.  Works fine now.


Reply
12/7/2017 10:41:53 PM

  • jsuarez
  • (5 posts)
Subject: Re:Issues accessing http links using Cesium web based spatial viewer

 Hi I have a similar issue on my site https://jsuarez.firstcloudit.com/ I'll appreciate any clue, thanks


Reply
7/31/2019 9:55:46 AM

Quickly Reply

Please logon and reply, Not DriveHQ Member?


Leading Cloud Surveillance service

Leading Enterprise Cloud IT Service Since 2003