如何将 Google AMP 页面的字体提供商列入白名单?
How can I whitelist a font provider for Google AMP pages?
AMP 文档指出:
Font providers can be whitelisted if they support CSS-only
integrations and serve over HTTPS. The following origins are currently
allowed for font serving via link tags:
https://fast.fonts.net
https://fonts.googleapis.com
IMPLEMENTERS NOTE: Adding to this list requires a change to the Google
AMP Cache CSP rule.
那么如何将 typography.com 托管字体添加到 "AMP Cache CSP rule",如 "IMPLEMENTER'S NOTE?"
所示
在打开任何问题之前,fast.fonts.net 在 issue on the @ampproject/amphtml GitHub project. I would assume additional font providers would follow the same process. Be sure to read the contributing guide 中被列入白名单。
AMP 文档指出:
Font providers can be whitelisted if they support CSS-only integrations and serve over HTTPS. The following origins are currently allowed for font serving via link tags:
https://fast.fonts.net
https://fonts.googleapis.comIMPLEMENTERS NOTE: Adding to this list requires a change to the Google AMP Cache CSP rule.
那么如何将 typography.com 托管字体添加到 "AMP Cache CSP rule",如 "IMPLEMENTER'S NOTE?"
所示fast.fonts.net 在 issue on the @ampproject/amphtml GitHub project. I would assume additional font providers would follow the same process. Be sure to read the contributing guide 中被列入白名单。