JeremyHeleine / Photo-Sphere-Viewer

A JavaScript library to display Photo Sphere panoramas.
857 stars 961 forks source link

Load panorama doesn't work #55

Open mcivita opened 7 years ago

mcivita commented 7 years ago

Hi, if i try to load a jpg file hosted on another server, by adding the full url, it doesn't work... If the panorama is located on the same server it works...

For example i try to load panorama: http://www.romaimmobiliarecasa.it/public/vt/645914928201114488_c.s.nicola%20011.jpg

the file is uploaded on the server but the panorama doesn't load...

http://annunciromacasa.it/vt/vtour/panoview.php?jpg=645914928201114488_c.s.nicola%20011.jpg

How to fix? Thanks Bye

JeremyHeleine commented 7 years ago

Hi,

For security reasons, browsers do not allow cross-origins requests (using a resource on a given domain called from another domain). However, it's still possible if the domain on which the resource is stored allows explicitly other domains to use the resource.

For more informations, you can read this article on the MDN. But there's nothing that can be done from Photo Sphere Viewer.