No blog in frame of my website

  • hello,

    I've enjoyed the vivaldi blog for years. Unfortunately I now suddenly notice that the vivaldi blog is being blocked. Probably because the blog is shown in a frame on my website ? It won't load anymore. If I put the URL of the blog in a separate tab I will see the blog.
    Is this correct, can I fix this so that the main page of my website remains visible (blog in a frame) ?

  • Moderator

    @astrobry The server of Community (Forum and Blog) sends a HTTP header

    X-Frame-Options: sameorigin

    That disallows embedding the content on other web domains/sites.

    You need to fetch content by PHP (or any other web language of your choice) and display that HTML in a DIV with fixed height.

    Untested JS:

    <script type="text/javascript">
    var myURL = ""; // <---- change this to the URL you want to embed!
    var xhr= new XMLHttpRequest();'GET', myURL, true);
    xhr.onreadystatechange= function() {
    	if (this.readyState!==4) return;
    	if (this.status!==200) return;
    	document.getElementsById('myframe')[0].innerHTML = this.responseText;    
    <iframe id="myframe"> </iframe>

    //EDIT: I fear security feature of cross-origin blocking does not allow this in Vivaldi 😞

Log in to reply

Looks like your connection to Vivaldi Forum was lost, please wait while we try to reconnect.