Unsafe attempt to initiate navigation: the frame is sandboxed
The page in your frame tries to change the URL of the top page, for example to leave the frame. Your sandbox attribute does not have allow-top-navigation, so the browser stops it.
- Chrome
- Edge
- Safari
Updated
Unsafe attempt to initiate navigation for frame with origin 'https://your-site.com' from frame with URL 'https://example.com/'. The frame attempting navigation of the top-level window is sandboxed, but the flag of 'allow-top-navigation' or 'allow-top-navigation-by-user-activation' is not set.
The click in the frame does nothing.
Unsafe attempt to initiate navigation for frame with origin 'https://your-site.com' from frame with URL 'https://example.com/'. The frame attempting navigation of the top-level window is sandboxed, but the flag of 'allow-top-navigation' or 'allow-top-navigation-by-user-activation' is not set.
The click in the frame does nothing.
Unsafe JavaScript attempt to initiate navigation for frame with URL 'https://your-site.com/' from frame with URL 'https://example.com/'. The frame attempting navigation of the top-level window is sandboxed, but the 'allow-top-navigation' flag is not set.
On this page
What it means
Why it happens
Check the page
See the headers the page sends now
Fix it if you own the site
<iframe src="https://example.com/" sandbox="allow-scripts allow-forms allow-top-navigation-by-user-activation" ></iframe>
Prefer allow-top-navigation-by-user-activation over allow-top-navigation. The second flag lets the frame move the top page at any time, with no click.
If you do not own the site
- Ask for the flag
Ask the owner of the embed code to add allow-top-navigation-by-user-activation to the sandbox attribute.
- Open the page in a new tab
Link to the page so it runs with no sandbox.