iframe not working inside localhost:1400
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)
What is your TestCafe test code?
Your complete configuration file
No response
Your complete test report
No response
Screenshots
Steps to Reproduce
- running node node_modules/gulp/bin/gulp http-playground
- then iframe the url in the localhost:1400 url
- 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