• I would like to embed or iframe random videos -for every page load- from our other wordpress blog into posts. Is it possible?

Viewing 1 replies (of 1 total)
  • Moderator bcworkz

    (@bcworkz)

    It’s possible, but the random nature of the response means some custom coding on the other site might be required. You might be able to find a plugin that will randomly play a video from a list on a page. But using such a page within an iframe would mean all the page’s chrome — header, footer, etc. — will all be part of the iframe’s content. You’d want such a page to be just the video player itself without any page chrome. That’s likely where the custom coding would come in if you can find a random video plugin.

    In some cases trying to get content in an iframe causes a CSP error. If that happens, a proper CSP header needs to be sent as part of the source site’s response.
    https://developer.mozilla.org/en-US/docs/Web/HTTP/CSP

Viewing 1 replies (of 1 total)
  • The topic ‘How to embed/iframe random videos from another wordpress blog of us?’ is closed to new replies.