You are not logged in.

Riphur

Beginner

  • "Riphur" started this thread

Posts: 29

Location: France, Lille

  • Send private message

1

Monday, March 30th 2020, 5:00pm

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

Tuesday, March 31st 2020, 5:30pm

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