Skip to content

Failed to read a named property 'href' from 'Location': Blocked a frame with origin "http://localhost:3000" from accessing a cross-origin frame. #29

Description

@phanmn

In which versions of the package (and relevant enviroment tools such as Node.js) have you observed the bug?

1.7.0

What steps will reproduce the bug?

Try to use iframe with different origin

What behavior did you expect?

No more error

What actually happened?

Failed to read a named property 'href' from 'Location': Blocked a frame with origin "http://localhost:3000" from accessing a cross-origin frame.

Workaround

No response

Proposed fix

Fix waitForLoad function, which is reading contentWindow?.location.href

Other remarks

No response

Contribution

  • I would like to try to contribute a fix

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions