-
Notifications
You must be signed in to change notification settings - Fork 3.9k
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
Pass source origin in all fetch requests #1772
Conversation
@dvoytenko looks good to me, passing onto @cramforce |
const url = parseUrl(input); | ||
const queryString = parseQueryString(url.search); | ||
const querySourceOrigin = queryString[SOURCE_ORIGIN_PARAM]; | ||
if (!querySourceOrigin) { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
if (SOURCE_ORIGIN_PARAM in queryString) {
throw …
}
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Done
@cramforce I've addressed the comments. And I also added the check for |
const url = parseUrl(input); | ||
const query = parseQueryString(url.search); | ||
if (SOURCE_ORIGIN_PARAM in query || | ||
decodeURI(input).indexOf(SOURCE_ORIGIN_PARAM) != -1) { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
As discussed, remove this.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Done
LGTM with one comment |
2b5b294
to
d6df7c4
Compare
Pass source origin in all fetch requests
Closes #1762.