Skip to content
This repository has been archived by the owner on Jan 26, 2023. It is now read-only.

split makeHTTPRequest to distinct methods #52

Merged
merged 6 commits into from
Nov 22, 2019
Merged

Conversation

camallen
Copy link
Contributor

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

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
Sarah Allen and others added 5 commits November 21, 2019 12:36
ensure makeHTTPRequest does not use credentials and makeCredentialHTTPRequest does by using an agent() instead of the singleton from the require
@camallen camallen changed the title [WIP] split makeHTTPRequest to distinct methods split makeHTTPRequest to distinct methods Nov 22, 2019
@camallen camallen requested a review from srallen November 22, 2019 17:29
@camallen
Copy link
Contributor Author

this is ready for review, i've tested my local copy of PFE with this and zooniverse/panoptes-javascript-client#121

Copy link
Contributor

@srallen srallen left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@srallen srallen merged commit 2c7fed0 into master Nov 22, 2019
@srallen srallen deleted the optional-credentials branch November 22, 2019 19:40
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants