Redirect to another web page from anvil

The IFrame is now working fine. But

In the normal part of the form, I get a response that the resource is still unauthenticated; while in the IFrame the resource is available. Is the IFrame ‘sandboxed’ from the rest of the web page?