USDA / USDA-APIs

Do you have feedback, ideas, or questions for USDA APIs? Use this repository's Issue Tracker to join the discussion.
www.usda.gov/developer
107 stars 16 forks source link

405 Error for JSON Request for JavaScript Service Request #4

Closed april-lundy closed 11 years ago

april-lundy commented 11 years ago

Apparently, the service is missing some header values that allow cross-domain requests. You can directly request the service via a browser, but an AJAX request fails. Has anyone else seen this issue?

april-lundy commented 11 years ago

For later readers: Note that you can add a dataType: 'jsonp' to the $.ajax call to allow the cross domain request.

april-lundy commented 11 years ago

Spoke too soon. It seems that the server doesn't allow JSONP requests? Any suggestions?

msd101psu commented 11 years ago

The server now allows JSONP requests.

ShaylaMae commented 11 years ago

We believe this issue has been resolved. Please let us know if the issue persists.