6.23. Cross-origin resource sharing (CORS)

Note

This functionality is available only to nextgis.com Mini and Premium users.

If you’re a developer and would like to use your Web GIS as a backend for your own map or an app, you can switch on and set up CORS. This mode allows to use data from Web GIS for a map or system on your ogranization’s domain, while all geodata uploads and management pains will be taken care of by your Web GIS at nextgis.com.

In your Web GIS Control panel go to “Cross-origin resource sharing (CORS)” section and enter allowed origins for cross-domain requests on CORS Settings page, one origin per line. Press Save.

../../_images/CORS_settings_eng1.png

Pic. 6.236. CORS settings page

Please note that different protocols (HTTP and HTTPS) and subdomains (example.com and www.example.com) are different origins. Wildcards are allowed for third-level domains and higher.