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

INFOnline iframe embed must be on publisher domain #2037

Merged
merged 1 commit into from
Feb 16, 2016

Conversation

sebastianbenz
Copy link
Contributor

The analytics request referer must come from the publisher's domain.

@@ -370,6 +370,8 @@ export class AmpAnalytics extends AMP.BaseElement {
if (trigger['iframePing']) {
assert(trigger['on'] == 'visible',
'iframePing is only available on page view requests.');
// enable passing urls via vars
request = decodeURIComponent(request);
Copy link
Member

Choose a reason for hiding this comment

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

This isn't the right way to do it, please remove here.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

done

@sebastianbenz
Copy link
Contributor Author

PTAL

@cramforce
Copy link
Member

LGTM if it works :)

@cramforce cramforce added the LGTM label Feb 16, 2016
@sebastianbenz
Copy link
Contributor Author

Works on my machine ;-)

cramforce added a commit that referenced this pull request Feb 16, 2016
INFOnline iframe embed must be on publisher domain
@cramforce cramforce merged commit d9a6e7f into ampproject:master Feb 16, 2016
@sebastianbenz sebastianbenz deleted the infonline branch February 18, 2016 08:54
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