testcafe-hammerhead icon indicating copy to clipboard operation
testcafe-hammerhead copied to clipboard

iframe not working inside localhost:1400

Open mozile2090 opened this issue 1 year ago • 0 comments

What is your Scenario?

When I try to use an iframe, I get the following error: "Unsafe attempt to initiate navigation for frame with URL 'http://localhost:1401/' from frame with URL 'http://localhost:1401/b8c3439…/https://example.com'. The frame attempting navigation of the top-level window is sandboxed, but the 'allow-top-navigation' or 'allow-top-navigation-by-user-activation' flag is not set." in some cases the url navigated to http://localhost:1402/b8c3439…/https://example.com but is there a way to avoid naviagtion and allowing it to navigation in the same page iframe

What is the Current behavior?

iframe not working inside localhost:1400

What is the Expected behavior?

iframe not working inside localhost:1400

What is your public website URL? (or attach your complete example)

image_2024-10-21_11-40-09

What is your TestCafe test code?

Your complete configuration file

No response

Your complete test report

No response

Screenshots

image_2024-10-21_11-40-09

Steps to Reproduce

  1. running node node_modules/gulp/bin/gulp http-playground
  2. then iframe the url in the localhost:1400 url
  3. the url show the error unsafe

TestCafe version

v3

Node.js version

v20.4.0

Command-line arguments

node node_modules/gulp/bin/gulp http-playground

Browser name(s) and version(s)

chromer

Platform(s) and version(s)

windows

Other

mozile2090 avatar Oct 21 '24 16:10 mozile2090