zooniverse / json-api-client

Apache License 2.0
10 stars 5 forks source link

split makeHTTPRequest to distinct methods #52

Closed camallen closed 4 years ago

camallen commented 4 years ago

isolate the credentialed (user sessions) requests from non-credentialed (API) into distinct methods.

This will fix ensure we don't run across CORS errors when using credentialed XMLHTTPRequests for open (wildcard) cors origins and will whitelist allowed cors origins for credentialed resource requests

camallen commented 4 years ago

this is ready for review, i've tested my local copy of PFE with this and https://github.com/zooniverse/panoptes-javascript-client/pull/121