You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
So my Angular app started throwing CORS errors today and sure enough, checking with curl there's no Access-Control-Allow-Origin: * header present on the response. I'm sure it has been there before because #36 mentions adding the header and my app used to be able to talk to the API before.
curl -X GET -G https://api.nal.usda.gov/ndb/search -d "api_key=ABDC1234" -d "q=broccoli" -v:
This should be fixed now.
Also, just a reminder to all NDB API users that the Food Data Central API (https://fdc.nal.usda.gov/api-guide.html) is slated to replace the NDB API by the end of the this year. It is important that you evaluate FDC in terms of your functional requirements and let us know what changes you might want/need in the new API. You can provide your questions, comments and concerns using the “Queries and Comments” form listed at https://fdc.nal.usda.gov/contact.html. If you post the same to this list, I will make sure that FDC staff receives a copy.
-Gary
Can confirm, the header is present and my app is working again. Thanks for the quick response!
The new FDC API has the header already enabled, should I still post this to the list? Also, will this issue tracker apply to the new API as well or is it only that contact form for now?
Maybe we could add the above notice to the readme so it does not get buried when this issue gets closed.
So my Angular app started throwing CORS errors today and sure enough, checking with curl there's no
Access-Control-Allow-Origin: *
header present on the response. I'm sure it has been there before because #36 mentions adding the header and my app used to be able to talk to the API before.curl -X GET -G https://api.nal.usda.gov/ndb/search -d "api_key=ABDC1234" -d "q=broccoli" -v
:Can we get this re-enabled?
The text was updated successfully, but these errors were encountered: