Languages

Menu
Sites
Language
load iframe with https

Hi ,

I have a problem with iframe that can't load htts url . If i replace for http i don´t have problem.



What can i do to solve this issue? I have to initialize the app in https? if yes how can i do this?

 

Responses

1 Replies
Armaan-Ul- Islam

Here, The matter is Server of the Website is not allowing you to load site url within an iframe in your application.

 

Let me explain in detail:

<body>
    <div id="main" class="page">
        <div class="contents">
             <iframe src="https://developer.tizen.org/"></iframe> 
             <iframe src="http://developer.samsung.com/"></iframe> 
        </div>
    </div>
</body>

 

While Running the app in Debug mode:

 

Here 'X-Frame-Options' is set to 'SAMEORIGIN' in case of Tizen Developers Site, Which restricts to load the site within iframe from outside domain. But for the case of Samsung Developers Site it's not set to SameOrigin, So it is allowed to load their site within an iframe from outside domain.

For details understanding on the matter:

https://stackoverflow.com/questions/27358966/how-to-set-x-frame-options-on-iframe

https://developer.mozilla.org/en-US/docs/Web/HTTP/Headers/X-Frame-Options