Skip to content

Native ads using rendererUrl do not render within GAM SafeFrame #253

Description

@ourcraig

Describe the bug
Native creative are unable to render using the rendererUrl custom renderer scenario via the Prebid Universal Creative as a third-party banner creative in GAM when Serve into a SafeFrame is enabled.

The following SecurityError is thrown from native.js it tries to call renderAd:

Uncaught SecurityError: Failed to read a named property 'document' from 'Window': Blocked a frame with origin x from accessing a cross-origin frame.

Image

To Reproduce

  • Test page: https://codesandbox.io/p/sandbox/972753
  • Set ENABLE_SAFEFRAME to 1 to target a PUC with Serve into a SafeFrame enabled
  • Set ENABLE_SAFEFRAME to 0 to target a PUC with Serve into a SafeFrame disabled

The expectation is that the creative renders in the same way regardless of the SafeFrame

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type
No fields configured for issues without a type.

Projects

Status
Done

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions