kartoza / docker-qgis-server

A dockerfile that contains a running QGIS server
68 stars 31 forks source link

Add CORS by default in apache.conf #12

Closed PierreNansot closed 6 years ago

PierreNansot commented 6 years ago

Hi,

Thank you very much for your work.

Is it ok to add "Header set Access-Control-Allow-Origin "*" " by default in in the apache conf ? I can't request my WFS server from a client api like openlayers without CORS.

Thanks in advance

timlinux commented 6 years ago

Can you provide a patch for this and I will apply it. Thanks.

timlinux commented 6 years ago

OK I added it her https://github.com/kartoza/docker-qgis-server/blob/develop/2.18/runtime/etc/apache2/conf-enabled/qgis.conf

PierreNansot commented 6 years ago

That's was it. Thanks a lot