• Resolved Lap

    (@lapzor)


    When i use this block, it shows the generated preview, but when I click play to load the iframe I get an error from youtube:

    Error 153
    Video player configuration error

    Copy debug info:

    "debug_error": "{\"errorCode\":\"embedder.identity.missing.referrer\"
Viewing 3 replies - 1 through 3 (of 3 total)
  • Thread Starter Lap

    (@lapzor)

    Fixed it, needed to add

    add_header Referrer-Policy “strict-origin-when-cross-origin” always;

    in my vhost

    Plugin Author Phi Phan

    (@mr2p)

    Hi Lap @lapzor,

    Thanks for reporting the issue, and great to hear you got it sorted out!
    Your solution will be helpful for others who may run into the same error, so I really appreciate you sharing it.

    Thanks, Phi.

    Thread Starter Lap

    (@lapzor)

    Note for other users:

    of course the way how to set the referrer-Policy depends on your server, in my case it’s ngnix and i have access to my vhost file so I did it there.

    On other servers you might do it via htaccess or maybe the easiest way by adding a meta tag to your wordpress

    htaccess version:

    <IfModule mod_headers.c>
    Header set Referrer-Policy "strict-origin-when-cross-origin"
    </IfModule>

    or meta tag (in your <head>

    <meta name="referrer" content="strict-origin-when-cross-origin">
Viewing 3 replies - 1 through 3 (of 3 total)

You must be logged in to reply to this topic.