• For the embedded block using HTTP, I could see the video link to youtube.
    When I use HTTPS, it displays https://www.youtube.com refuse the connection.

    Not sure why? Please support this and let me know why…thanks.

    The page I need help with: [log in to see the link]

Viewing 6 replies - 1 through 6 (of 6 total)
  • Hello there! Happy to help.

    I can see that it shows a connection error on your website. However, I tried to replicate the issue on a local WordPress installation and I was able to embed the video (Here’s a screenshot: https://snipboard.io/tZ31iK.jpg).

    The only thing that I did different was that I removed the “?feature=oembed” at the end of the URL, since it didn’t work for me when that was included. So I suggest that you try changing the URL to just:

    https://www.youtube.com/embed/FSRfErM4Aw8

    Please try that and let us know how it went.

    Cheers!

    Thread Starter jimmyorg

    (@jimmyorg)

    Hello:
    Did u mean use the “embedded-block” then key in https://www.youtube.com/embed/FSRfErM4Aw8 ?
    When I login to edit the page and tired, the result became show the word of link….

    I have tried to use different browser to see this page….
    Like Baidu web browser using Android/iOS phone and Mac, it was workable.
    I used Winsoft Gloria web browser in Win11, it was workable…

    Not sure why it can’t work on Edge/Chrome/Safari web browser…Weird…

    Did u mean use the “embedded-block” then key in https://www.youtube.com/embed/FSRfErM4Aw8 ?

    Yes, this is what I tried locally and worked just fine. What version of WordPress do you have?

    Another thing you could try is adding a Custom HTML block and paste the embed code provided by YouTube:

    <iframe width="560" height="315" src="https://www.youtube.com/embed/FSRfErM4Aw8" title="YouTube video player" frameborder="0" allow="accelerometer; autoplay; clipboard-write; encrypted-media; gyroscope; picture-in-picture" allowfullscreen></iframe>

    I also tried this locally and works fine. Let me know if it works for you.

    Thread Starter jimmyorg

    (@jimmyorg)

    I have tried to paste…the result is not working…..

    Hello! I was checking the headers of your website and I was able to replicate the issue and narrow it down to this header:

    cross-origin-embedder-policy: require-corp

    Here’s a screenshot of the header as it looks on your website using Chrome inspector tool. If you remove that header, the embed should work.

    Check your htaccess file for that header and remove it, if that doesn’t work maybe a plugin is overriding your headers, try deactivating all plugins and see if the issue is solved, then try activating them one by one to find the one causing the issue.

    Best regards,
    Farid.

    Thread Starter jimmyorg

    (@jimmyorg)

    Hi,
    I checked there are 2 .htaccess under WordPress directory.
    1 is under wordpress
    1 is under wp-contect\plugins\akismet

    I just checked the files, I didb’t find this sentence “cross-origin-embedder-policy: require-corp”

    if that doesn’t work maybe a plugin is overriding your headers, try deactivating all plugins and see if the issue is solved, then try activating them one by one to find the one causing the issue. ==> I will check later, thanks.

Viewing 6 replies - 1 through 6 (of 6 total)
  • The topic ‘Can’t link youtube using embed block via https’ is closed to new replies.