October 2017
Intermediate to advanced
370 pages
8h 57m
English
Setting this up will depend on your own environment, so we can only give general guidelines here. One way to do this is to add a domain alias to your hosting setup so that you can access the main AMP page at https://domain.com/amp-doc.html, and the iframe source could be at https://domainalias.com/iframe-content.html. In the examples for this chapter, the iframe content is served from https://alt.theampbook.com and the main AMP documents are served from https://theampbook.com.
If you are working locally you'll need to do something similar. Note that the iframe must be served from an HTTPS URL, unless it's served from localhost. So your options for localhost would be either:
Read now
Unlock full access