KarrLab / datanator_rest_api

A OAS3 compliant REST API for the Datanator integrated database
MIT License
0 stars 3 forks source link

Enable CORS for /metabolites/meta/ #132

Closed jonrkarr closed 4 years ago

jonrkarr commented 4 years ago

Example: https://testapi.datanator.info/metabolites/meta/?inchikey=RFSUNEUAIZKAJO-ARQDHWQXSA-N

lzy7071 commented 4 years ago

Can you point me to a front end link where this error shows? The API itself seems to work fine. I also tried the production frontend (e.g. https://datanator.info/metabolite/HSCJRCZFDFQWRP-RDKQLNKOSA-N/Escherichia%20coli%20E1002/) and I couldn't find such an error. Sometimes the CORS error came about when there is an additional / in the URL and the browser tries to fix the link by redirecting. In any case, CORS has been enabled for a while.

jonrkarr commented 4 years ago

This affects the metabolite data pages in testing (localhost:3000 accessing the test api).

This doesn't impact the deployed version

lzy7071 commented 4 years ago

CORS is currently working on my end (localhost:3000).

jonrkarr commented 4 years ago

It works fine on my machine now.