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

fix: remove disallowed `user-agent` request header #161

Closed seleb closed 1 year ago

seleb commented 1 year ago

despite the API change mentioned in #157, it looks like the flickr API did not go through with the change: https://www.flickr.com/groups/51035612836@N01/discuss/72157721918374433/72157721918410230.

unfortunately they also did not include user-agent as an allowed header, and setting it here results in CORS errors, e.g.

Cross-Origin Request Blocked: The Same Origin Policy disallows reading the remote resource at https://api.flickr.com/services/[...]. (Reason: header ‘user-agent’ is not allowed according to header ‘Access-Control-Allow-Headers’ from CORS preflight response).