Skip to content

Enable differing domains for OAuth 2 requests#341

Open
samsullivan wants to merge 1 commit intociaranj:masterfrom
seomoz:different-domains
Open

Enable differing domains for OAuth 2 requests#341
samsullivan wants to merge 1 commit intociaranj:masterfrom
seomoz:different-domains

Conversation

@samsullivan
Copy link

@samsullivan samsullivan commented Jan 11, 2018

This solves #313 by only prepending this._baseSite to URLs if they don't start with /https?:/. For example, Facebook uses differing domains for these requests:

@samsullivan
Copy link
Author

Maintainers: I didn't modify the constructor to make baseSite optional, because I wanted to keep my changes to a minimum. I'm happy to update this further, if you don't like this design.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant