[wp-trac] [WordPress Trac] #40771: Unable to add YouTube video to Video Widget

WordPress Trac noreply at wordpress.org
Tue May 16 14:53:23 UTC 2017


#40771: Unable to add YouTube video to Video Widget
--------------------------+--------------------
 Reporter:  taijacg       |       Owner:
     Type:  defect (bug)  |      Status:  new
 Priority:  normal        |   Milestone:  4.8
Component:  Widgets       |     Version:  trunk
 Severity:  normal        |  Resolution:
 Keywords:  needs-patch   |     Focuses:
--------------------------+--------------------

Comment (by taijacg):

 Replying to [comment:9 westonruter]:

 Interesting; it looks like the XHR request is failing with the status
 (blocked:mixed-content). Here are the headers- there is no response.

 Request URL:http://wp.local/search/wp-
 json/oembed/1.0/proxy?url=https%3A%2F%2Fwww.youtube.com%2Fwatch%3Fv%3DrEg6oeazTNY&_wpnonce=eea4ecbabd&discover=false
 Referrer Policy:no-referrer-when-downgrade
 Request Headers
 Provisional headers are shown
 Accept:application/json, text/javascript, */*; q=0.01
 Origin:https://wp.local
 Query String Parameters
 view source
 view URL encoded
 url:https://www.youtube.com/watch?v=rEg6oeazTNY
 _wpnonce:eea4ecbabd
 discover:false

 > @taijacg Hi! Would you please open the network console and look at the
 XHR HTTP request that is made after you paste in the YouTube URL? It
 should be making a request off to the oEmbed endpoint in the WP REST API.
 If that request fails then that might be a reason you are seeing the
 error. Please share the HTTP response from that request.

--
Ticket URL: <https://core.trac.wordpress.org/ticket/40771#comment:10>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform


More information about the wp-trac mailing list