Sie sind nicht angemeldet.

1

Montag, 30. März 2020, 17:00

External ressources ( CORS ) step by step

Hi everyone,


After several attempts, I cannot use resources (image or xml) from another domain.
I looked on the KrPano forum on the use of CORS, but without success.
Could someone present step by step actions to allow loading from another domain?


In my test, I put the vtourskin.png file on a domain "B" and the rest of the project on the domain "A".
I put an htaccess with Header set Access-Control-Allow-Origin "*" in the directory of the remote server domain "B".
I put in my "tour.xml" <security cors = ""> </security> on my domain "A"

Thank you !

2

Dienstag, 31. März 2020, 17:30

Hi,

please see here:
https://enable-cors.org/server.html

The .htaccess is for Apache web-servers, maybe you have a different one or another settings prevents that setting.

Inside krpano normally nothing need to be done or set, enabling CORS is not krpano related.

Best regards,
Klaus