3dcitydb / 3dcitydb-web-map

Cesium-based 3D viewer and JavaScript API for the 3D City Database
Apache License 2.0
359 stars 122 forks source link

No allowed resource Access Control Allow Origin #39

Closed stefanodecillis closed 5 years ago

stefanodecillis commented 5 years ago

Hi,

i'm trying to import a json file in "add/Configure Layer" but it gave me "no Access-Control-Allow-Origin head is present on the requested resource". This file was uploaded on Google Drive, Dropbox and GitHub even. It gave me the same error and i'm about to give up. Someone had the same problem?

BWibo commented 5 years ago

This issue seems to be related to CORS. Check this page https://enable-cors.org/ to enable CORS for your server.

BWibo commented 5 years ago

Issue #26 contains some discussion regarding this topic as well.

stefanodecillis commented 5 years ago

Yeah, the solution for me was to enable CORS on my server and client and use resources within the project.