Cross-Origin Resource Sharing
Dobry den
Mam povolene na svojom webe gigapanorama.sk Cross-Origin Resource Sharing?
Potreboval by som to pouzit na externe zobrazenie 3d modoelov
https://3dviewer.net/info/index.html
Loading models hosted on a web server
You can load models by url with the open url button () on the toolbar. Here you can list all the required files. You should place every file in a separate line.
To make this work, CORS (Cross-Origin Resource Sharing) must be enabled on the remote server.
ked skusam https://gigapanorama.sk/3dtest/high1.obj
napise mi
Something went wrong
Failed to load file for import.
The remote server refused to fulfill the request. Check if the url is correct, and make sure that CORS requests are allowed on the remote server.
9 Answers
Dobrý den,
v tom by neměl být problém. Hlavičku pro CORS můžete přidat v .htaccess souboru, např. takto:
Header set Access-Control-Allow-Origin „example.com“