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

AMP for email is working in playground but fails in gmail #15

Closed
Sharan-kumar opened this issue Jan 17, 2020 · 2 comments
Closed

AMP for email is working in playground but fails in gmail #15

Sharan-kumar opened this issue Jan 17, 2020 · 2 comments

Comments

@Sharan-kumar
Copy link

Sharan-kumar commented Jan 17, 2020

i made a AMP html template in playground and tested in the same site it was working fine(even with proxy assertion token enabled state), but the same was failing in gmail with error message
in the console

Error proxying amp-list templates with status: 404​​​

here is the response headers for mail.google.com site configured in my server

Access-Control-Allow-Origin : 'https://mail.google.com'
AMP-Access-Control-Allow-Source-Origin : 'amp@gmail.dev'
Access-Control-Expose-Headers : 'Access-Control-Allow-Origin,AMP-Access-Control-Allow-Source-Origin'
Access-Control-Allow-Headers : 'amp4email-proxy-assertion'

PS: it will be better if there is a detailed error message in the console to debug, instead of just showing 404

@srikanthvvgs
Copy link

how is the issue resolved?

@Sharan-kumar
Copy link
Author

The domain I was using was not visible to external networks, that's why google servers cannot make a http request to my domain, thus causing the 404 error, i solved it by making my domain visible to external networks

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

No branches or pull requests

2 participants