Skip to content

JavaScript blocks access to cross-origin frame #9090

@sshymko

Description

@sshymko

Preconditions

  1. HTTPS website
  2. Full Page Cache enabled
  3. 3rd party iframe, such as Google Customer Reviews badge, on website pages

Steps to reproduce

  1. Open any website page with the 3rd party iframe
  2. Open developer console in the browser
  3. Notice JavaScript errors

Expected result

  • FPC does not process 3rd party resources that do not belong to the website domain

Actual result

  • The following JavaScript error in the console:
Uncaught DOMException: Failed to read the 'contentDocument' property from 'HTMLIFrameElement': Blocked a frame with origin "https://www.example.com" from accessing a cross-origin frame.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions