Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Automatically set changeOrigin: true for non-local verifications #319

Merged
merged 4 commits into from
Sep 12, 2019

Conversation

mefellows
Copy link
Member

When the provider verification process is run against a remote provider, the origin
header can mismatch the actual remote proxied API.

This PR defaults to change the origin of the host header to the target URL in this case only, unless
specifically overridden by the user. This should remove a class of confusing issues
for new users.

See #280, #281 and #282 for background. This specific issue has come up on Slack
a number of times, and hence fixing before it appears as a GH issue.

… verification

When the provider verification process is run against a remote provider, the origin
header can mismatch the actual remote proxied process.

This PR defaults to change the origin of the host header to the target URL, unless
specifically overridden by the user. This should remove a class of confusing issues
for new users.

See #280, #281 and #282 for background. This specific issue has come up on Slack
a number of times, and hence fixing before it appears as a GH issue.
@coveralls
Copy link

Coverage Status

Coverage increased (+0.08%) to 95.122% when pulling c91c3aa on feat/automatic-change-origin into 058ab6f on master.

1 similar comment
@coveralls
Copy link

Coverage Status

Coverage increased (+0.08%) to 95.122% when pulling c91c3aa on feat/automatic-change-origin into 058ab6f on master.

@YOU54F
Copy link
Member

YOU54F commented Jun 28, 2019

@mefellows good idea on this change, do you want me to test it out at all on one of my projects ?

@mefellows
Copy link
Member Author

Thanks @YOU54F, if you wouldn't mind that would be great! I need to update tests etc. here before releasing.

@TimothyJones
Copy link
Contributor

@mefellows This change looks good to me - should we merge it?

@mefellows
Copy link
Member Author

mefellows commented Sep 12, 2019 via email

@TimothyJones TimothyJones merged commit 60f2dc3 into master Sep 12, 2019
@TimothyJones TimothyJones deleted the feat/automatic-change-origin branch September 12, 2019 06:48
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.

4 participants