【发布时间】:2018-12-02 21:24:39
【问题描述】:
我有一个服务器端呈现的 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 单元是动态加载的(它们必须是,广告只显示在客户端渲染上)而不是页面加载。
linked documentation for CORB 引用了一种模糊算法,用于确定哪些资源加载是安全的。 如何防止 CORB 屏蔽我的广告?
【问题讨论】:
-
我有完全相同的问题。尝试了各种方法,但都没有奏效。
-
同样的问题
标签: angular google-chrome adsense cross-origin-read-blocking