我有一个服务器端渲染的 Angular 应用程序,我在其中使用ng2-adsense在某些路由上显示 AdSense 广告。我注意到大部分时间(不是所有时间)我的广告都不会显示,并且我在 Chrome 开发控制台中收到警告说:
Cross-Origin Read Blocking (CORB) blocked cross-origin response https://www.google.com/ads/measurement/l?ebcid=REDACTED with MIME type text/html. See https://www.chromestatus.com/feature/5629709824032768 for more details.
(anonymous) @ ads:1
Cross-Origin Read Blocking (CORB) blocked cross-origin response https://googleads4.g.doubleclick.net/pcs/view?xai=REDACTED &sig=REDACTED &urlfix=1&adurl= with MIME type text/html. See https://www.chromestatus.com/feature/5629709824032768 for more details.
Cross-Origin Read Blocking (CORB) blocked cross-origin response https://pagead2.googlesyndication.com/pagead/gen_204?id=sodar&v=24&t=2&bgai=REDACTED&bg=REDACTED with MIME type text/html. See https://www.chromestatus.com/feature/5629709824032768 for more details.
我假设这是因为我的 AdSense 单元是动态加载的(它们必须是,广告只显示在客户端渲染上)而不是页面加载。
CORB的链接文档引用了一个模糊的算法,该算法确定哪些资源加载是安全的。如何防止 CORB 阻止我的广告?