GFDRR / opendri-website

https://opendri.org
Other
0 stars 4 forks source link

Automatic updates to Project page stats #37

Open jocewest opened 6 years ago

jocewest commented 6 years ago

Project pages should be able to pull various Geonodes' stats directly from their websites, so that project information stays up-to-date over time (i.e. number of Geonode layers, etc)

dri-project-stats

ppasq commented 5 years ago

For security reasons you cannot fetch information from another server unless the other server allows it. This is called CORS, Cross-Origin Resource Sharing. So, in order to make it work, a CORS policy must be setup on all the GeoNode servers to allow requests form OpenDRI.org. In addition, the GeoNode API gives a lot of information but making the request could slow down significantly the OpenDRI page.