-
Notifications
You must be signed in to change notification settings - Fork 19
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
API access for third partes #884
Comments
I've created related ticket in JIRA : https://jira.camptocamp.com/browse/GSWBTH-37 I've added CORS header on API on int.thinkhazard.org see: http://int.thinkhazard.org/fr/hazardcategory/EQ/LOW.json
|
Hey did anyone have a solution on https://jira.camptocamp.com/browse/GSWBTH-37? I can not access this link unfortunately. |
Hi Rob, thanks for the feedback. CORS access should've been working, let me paste your message to help with solution:
|
Just tried with https://www.thinkhazard.org/fr/hazardcategory/FL/MED.json
Could you give the url and the error message. |
Hi Arnaud, thanks for checking the issue. Here is the link that I used: http://thinkhazard.org/en/report/177.json And here is a reproduction of my attempt: https://github.com/RobSchilderr/useSWRGetServer |
This link does work indeed. :) |
Sorry but http://thinkhazard.org/en/report/177.json is not part of the API routes which supports cross origin requests. The routes that support CORS are:
CORS headers are not added on other routes. |
Alright, thanks for answering :) |
We need to provide API access to TH db for external users. Currently, they have issues using the queries from external domains. Here is the message:
The text was updated successfully, but these errors were encountered: