flickr / flickr-sdk

Almost certainly the best Flickr API client in the world for node and the browser
https://www.flickr.com/services/api
MIT License
131 stars 29 forks source link

Request text/plain from the REST API #121

Closed jeremyruppel closed 6 years ago

jeremyruppel commented 6 years ago

As demonstrated in #111, the API rejects CORS preflight requests because we're requesting content-type application/json. This is technically incorrect (for the Flickr API) because we're using a query param for the content type (format) instead of the content-type header. So, the Flickr Way™ is to request text/plain and get back application/json.