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

Enable retrieving amp-analytics remote config with credentials. #1805

Merged
merged 1 commit into from
Feb 5, 2016

Conversation

cramforce
Copy link
Member

Also starts mandating AMP CORS protocol for credentialed requests to amp-list.
Verified that the guardian is currently not including credentials in their requests.

let fetchConfig = {
requireAmpResponseSourceOrigin: true,
};
if (this.element.hasAttribute('data-include-credentials')) {
Copy link
Contributor

Choose a reason for hiding this comment

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

In amp-list, we do credentials=include, so maybe here, let's do data-credentials=include?

Copy link
Member Author

Choose a reason for hiding this comment

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

Changed!

@dvoytenko
Copy link
Contributor

Few comments, but otherwise LGTM

Also starts mandating AMP CORS protocol for credentialed requests to amp-list.
Verified that the guardian is currently not including credentials in their requests.
cramforce added a commit that referenced this pull request Feb 5, 2016
Enable retrieving amp-analytics remote config with credentials.
@cramforce cramforce merged commit 64b20ba into ampproject:master Feb 5, 2016
@cramforce cramforce deleted the analytics-config branch February 5, 2016 16:56
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.

2 participants