Page MenuHomePhabricator

Problem CORS with geoJson data on commons.wikimedia.org
Closed, InvalidPublic

Description

Hello

With the property P3896 :

SELECT  ?geo 
WHERE {
       wd:Q90 wdt:P3896 ?geo 
}

I found URIs on commons. For example :

http://commons.wikimedia.org/data/main/Data:Paris.map

But I can not read this file directly in a script because the CORS of commons.wikimedia.org is not open.
See the error :

Access to XMLHttpRequest at 'https://commons.wikimedia.org/data/main/Data:Paris.map' (redirected from 'http://commons.wikimedia.org/data/main/Data:Paris.map') from origin 'http://myserver' has been blocked by CORS policy: No 'Access-Control-Allow-Origin' header is present on the requested resource.

Is it possible to resolve this access problem ?
Thanks

Related Objects

Mentioned Here
P3896 LQT reply

Event Timeline

closing as invalid as it seems to have been an issue with the way the api was used by the consumer.

@TheDJ Thanks for the response.

You know if it's possible to have only the geojson via the API ?

ie. only this part of JSONData :

{ "type": "FeatureCollection",
...
  }

Thanks