Title: Can&#8217;t link youtube using embed block via https
Last modified: June 17, 2022

---

# Can’t link youtube using embed block via https

 *  [jimmyorg](https://wordpress.org/support/users/jimmyorg/)
 * (@jimmyorg)
 * [3 years, 11 months ago](https://wordpress.org/support/topic/cant-link-youtube-using-embed-block-via-https/)
 * For the embedded block using HTTP, I could see the video link to youtube.
    When
   I use HTTPS, it displays [http://www.youtube.com](http://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](https://login.wordpress.org/?redirect_to=https%3A%2F%2Fwordpress.org%2Fsupport%2Ftopic%2Fcant-link-youtube-using-embed-block-via-https%2F%3Foutput_format%3Dmd&locale=en_US)
   to see the link]_

Viewing 6 replies - 1 through 6 (of 6 total)

 *  [faridjc](https://wordpress.org/support/users/faridjc/)
 * (@faridjc)
 * [3 years, 11 months ago](https://wordpress.org/support/topic/cant-link-youtube-using-embed-block-via-https/#post-15771106)
 * 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](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](https://wordpress.org/support/users/jimmyorg/)
 * (@jimmyorg)
 * [3 years, 11 months ago](https://wordpress.org/support/topic/cant-link-youtube-using-embed-block-via-https/#post-15771607)
 * Hello:
    Did u mean use the “embedded-block” then key in [https://www.youtube.com/embed/FSRfErM4Aw8](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…
 *  [faridjc](https://wordpress.org/support/users/faridjc/)
 * (@faridjc)
 * [3 years, 11 months ago](https://wordpress.org/support/topic/cant-link-youtube-using-embed-block-via-https/#post-15772438)
 * > Did u mean use the “embedded-block” then key in [https://www.youtube.com/embed/FSRfErM4Aw8](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](https://wordpress.org/support/users/jimmyorg/)
 * (@jimmyorg)
 * [3 years, 11 months ago](https://wordpress.org/support/topic/cant-link-youtube-using-embed-block-via-https/#post-15772752)
 * I have tried to paste…the result is not working…..
 *  [faridjc](https://wordpress.org/support/users/faridjc/)
 * (@faridjc)
 * [3 years, 11 months ago](https://wordpress.org/support/topic/cant-link-youtube-using-embed-block-via-https/#post-15783470)
 * 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](https://snipboard.io/utEG2n.jpg) 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 fil](https://wordpress.org/support/article/htaccess/)e 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](https://wordpress.org/support/users/jimmyorg/)
 * (@jimmyorg)
 * [3 years, 11 months ago](https://wordpress.org/support/topic/cant-link-youtube-using-embed-block-via-https/#post-15783517)
 * 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.

## Tags

 * [embed](https://wordpress.org/support/topic-tag/embed/)
 * [gutenberg](https://wordpress.org/support/topic-tag/gutenberg/)
 * [Youtube](https://wordpress.org/support/topic-tag/youtube/)

 * In: [Fixing WordPress](https://wordpress.org/support/forum/how-to-and-troubleshooting/)
 * 6 replies
 * 3 participants
 * Last reply from: [jimmyorg](https://wordpress.org/support/users/jimmyorg/)
 * Last activity: [3 years, 11 months ago](https://wordpress.org/support/topic/cant-link-youtube-using-embed-block-via-https/#post-15783517)
 * Status: not resolved

## Topics

### Topics with no replies

### Non-support topics

### Resolved topics

### Unresolved topics

### All topics
