Access denied while uploading IFrame in IE11

0

I'm inserting an own iframe created by me on my page, specifically it's a chat bubble, and for both Chrome and Firefox as IE Edge works correctly, but for IE11, it does not return access denied.

What I do on my main page is call a JS in which I create an Iframe, and once created inside the event window.load I call a function of that Iframe to load the chat, but that's when I gives the access error.

Iframe created it this way, I do not know if it can be done differently than inserting the HTML instead of pointing to a URL

//Creamos Iframe para almacenar todo el chat
var iframe = document.createElement('iframe');
//propiedades iframe
iframe.setAttribute('id', 'contentChat');
iframe.setAttribute('name', 'chatBot');
iframe.setAttribute('scrolling', 'no');
iframe.setAttribute('allowfullscreen', '');
iframe.style.cssText = 'border:none;';
iframe.setAttribute('src', 'https://prepro.de/client/html/webIframe.html'); 

* The route is modified to maintain the privacy of the site to be a company

When I call the Iframe function to start the chat, I get that error

var el = document.getElementById('contentChat');
        var iframeDoc = getIframeWindow(el)

        iframeDoc.initializeChat(params);
    
asked by Sergio 02.08.2018 в 09:50
source

1 answer

0

For Internet Explorer Opera and Safari iframe support is as follows:

  • They have basic support for iframe
  • allowfullscreen is not supported
  • The rest is unknown, maybe yes or no

MDN Official Documentation

More detailed info on IFRAME support in browsers

From what I have been able to see there are many people who have problems with iframe in IE and in some cases they recommended to deactivate it. The second link collects info from several official pages, as I have seen there are many parts of Iframe that are still in development or not even implemented in IE

    
answered by 02.08.2018 в 10:30