FEATURE: Improve DFP / Ad-manager Content-Security-Policy compat (#201)
Switching to cross-domain iframes is recommended by google here: https://developers.google.com/publisher-tag/guides/content-security-policy
This commit is contained in:
parent
b0c95114ea
commit
32f18893ec
|
@ -229,6 +229,9 @@ function loadGoogle() {
|
|||
// we always use refresh() to fetch the ads:
|
||||
window.googletag.pubads().disableInitialLoad();
|
||||
|
||||
// Improve CSP compatibility (https://developers.google.com/publisher-tag/guides/content-security-policy)
|
||||
window.googletag.pubads().setForceSafeFrame(true);
|
||||
|
||||
window.googletag.enableServices();
|
||||
});
|
||||
});
|
||||
|
|
Loading…
Reference in New Issue