I have a portal page that is embedded on a website in an iframe and I get the following security error:
Uncaught SecurityError: Blocked a frame with origin "https://subdomain.domain.com" from accessing a frame with origin "http://www.domain.com". The frame requesting access has a protocol of "https", the frame being accessed has a protocol of "http". Protocols must match. main.js:436
Note: I do not have any script that is trying to access information from the main website page where this iframe is embedded.
Upon inspecting the main.js file at line 436, it is trying to access the rb.newui variable from the parent window which is not defined for portals and window.top (which is my website) definitely doesn't have that variable defined. This needs to be resolved going further as my portal page is not behaving correctly because of this security exception error. Let me know once this issue is fixed.
This is the same-origin policy restriction due to different protocols. Please see below for more details.
Could you please try by adding below script to the footer of your portal and let us know the outcome.
Could someone confirm to me about this issue please?
We are looking into it, will update soon.
Hello Mayank Kumar ,
Could you suggest a solution for this to me please? This post has been there for 3 months already.
This issue has been resolved on release branch. Fix will be available in the forthcoming release .
Once available, please consider reverting the above suggested client-side override employed as a workaround.