Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

CORS issue with embedded nginx #58

Open
hbruch opened this issue Jul 27, 2021 · 1 comment
Open

CORS issue with embedded nginx #58

hbruch opened this issue Jul 27, 2021 · 1 comment
Assignees

Comments

@hbruch
Copy link

hbruch commented Jul 27, 2021

When qgis-server is started using the embedded nginx service, no object information is displayed as qgis-server does not send an Access-Control-Allow-Origin header.

This could be solved e.g. by adding add_header Access-Control-Allow-Origin *; to the /qgis/ location in qgis-server-nginx.conf.

@daniviga daniviga self-assigned this Sep 26, 2021
@JakobMiksch
Copy link
Contributor

not sure if this is the responsibility of the QGIS server, since it might be behind another proxy.
when adding this a CORS header to the conf, I would prefer it to be optional with default to false.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants