属性 'http' 可能不会出现在 AMP 页面上的标记 'meta name= and content=' 中

The attribute 'http' may not appear in tag 'meta name= and content=' on AMP page

尝试将我的页面转换为 AMP 时出现以下错误:The attribute 'http' may not appear in tag 'meta name= and content='

在我的例子中,解决方案是:AMP 元标记不应包含任何 link 和 'HTTP',而应仅包含 'https'。在开发中,我们通常使用类似'http://localhost:7666/img.jpg' but the same may work when it is deployed in production (if it is on https) like 'https://xyg.com/img.jpg'的东西。对我来说,一旦我部署到生产环境,它就可以工作了,因为它与 'https'.

一起工作

简单来说就是把'HTTP'改成'https'

http 不允许出现在 amp 元标记中。将其更改为 https 即可