We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
We have the problem with EcoTaxoGuide that the front-end app (using Angular) refuses to connect to the API because it does not provide a correct CORS (https://developer.mozilla.org/fr/docs/Web/HTTP/CORS/Errors/CORSMissingAllowOrigin).
E.g.: https://ecotaxa.obs-vlfr.fr/api/object/25557188
Hacked today a "solution" in nginx, but the proper fix should be in the back-end: https://fastapi.tiangolo.com/tutorial/cors/
The text was updated successfully, but these errors were encountered:
location /api/object/ { proxy_pass http://localhost:8000; add_header 'Access-Control-Allow-Origin' '*' always; } location /api/vault/ { proxy_pass http://localhost:8000; add_header 'Access-Control-Allow-Origin' '*' always; }
Sorry, something went wrong.
grololo06
No branches or pull requests
We have the problem with EcoTaxoGuide that the front-end app (using Angular) refuses to connect to the API because it does not provide a correct CORS (https://developer.mozilla.org/fr/docs/Web/HTTP/CORS/Errors/CORSMissingAllowOrigin).
E.g.: https://ecotaxa.obs-vlfr.fr/api/object/25557188
Hacked today a "solution" in nginx, but the proper fix should be in the back-end: https://fastapi.tiangolo.com/tutorial/cors/
The text was updated successfully, but these errors were encountered: