• Resolved enchamun

    (@enchamun)


    Hello,

    some Server don’t send the correct HTTP Header to the Youtube API and you get a Request Error – also with correct Permission / Key / Domains etc.

    After changing wp-youtube-lyte/wp-youtube-lyte.php:

    Line 470: $yt_resp = wp_remote_get( $yt_api_url );

    to:

    $yt_resp = wp_remote_get( $yt_api_url, array(
    ‘headers’ => array(
    ‘referer’ => home_url()
    )
    );

    it runs without any Problems…

    Greets
    Knut

Viewing 8 replies - 1 through 8 (of 8 total)
Viewing 8 replies - 1 through 8 (of 8 total)
  • The topic ‘YouTube API Request Error Fix’ is closed to new replies.