The frame requesting access has a protocol of "https", the frame being accessed has a protocol of "http". Protocols must match

forms, html, javascript

Solution

You're getting 2 errors here. The first one is a cross-domain problem, and you won't be able to fix that. It is impossible for your site to access the loaded iframe's site at all. Otherwise, the browser would be really insecure, allowing one site to very easily get the user's settings on another site by just loading an iframe. So, you can't change anything within the iframe. The only thing you can do to the iframe's contents is `iframeElement.src = '//otherurl.com';` - changing the source url of the iframe.

To fix the second problem, you can do the following: Instead of using `http://` or `https://` in the url you're defining in your scripts or forms, you can just use `//`. That will automatically 'fill in' the same protocol as the one you're using now. So, if you're on `http://` at the moment, it'll load the iframe in `http://` too, and vice versa.

Problem

I'm getting this error : Uncaught SecurityError: Blocked a frame with origin "https://lss-servicedesk.techteam.com" from accessing a frame with origin "http://mydomain.com". The frame requesting access has a protocol of "https", the frame being accessed has a protocol of "http". Protocols must match. ``` <FORM ACTION=https://lss-servicedesk.techteam.com/CAisd/pdmweb.exe METHOD=POST onsubmit="return checkform(this);"> ``` Is there any way to get around this problem ? thanks in advance...

Original source