prebid / Prebid.js

Setup and manage header bidding advertising partners without writing code or confusing line items. Prebid.js is open source and free.
https://docs.prebid.org
Apache License 2.0
1.31k stars 2.07k forks source link

GPT interstitial support - SafeFrames #10593

Closed ourcraig closed 1 year ago

ourcraig commented 1 year ago

Type of issue

Bug/Feature Request

Description

The current version of the Prebid Universal Creative does not support GPT out-of-page interstitials in a SafeFrame environment.

The ucTagData.pubUrl differs from the SafeFrame origin, leading to a postMessage error e.g.

Failed to execute 'postMessage' on 'DOMWindow': The target origin provided ('https://ourcraig.github.io') does not match the recipient window's origin ('https://8d4de8f36eb4e4b3193097ff2b247e5e.safeframe.googlesyndication.com').

Changing the pubUrl to "*" does not resolve the issue due to the GPT interstitial creating an iframe within the SafeFrame that the Prebid Universal Creative postMessage does not break out of.

Would it be possible to get support for GPT out-of-page interstitials in a SafeFrame environment?

Test page

pbjs-instl-tests

Other information

patmmccann commented 1 year ago

This is a dupe of #5917