Youtube Embeds

Hi All,
Can I get some understanding or coaching on how I could remove the following console log errors:

Access to XMLHttpRequest at ‘https://googleads.g.doubleclick.net/pagead/id’ from origin ‘https://www.youtube.com’ has been blocked by CORS policy: No ‘Access-Control-Allow-Origin’ header is present on the requested resource.

We use many youtube embeds and seems like this error is coming up a lot.

Thank You.

Hello Brian,

Thanks for writing in!

To get this issue resolved, please edit your .htaccess and then add this line:

Header set Access-Control-Allow-Origin "*"

Alternatively, you might want to check out 3rd party plugins:

Hope this helps.

This topic was automatically closed 10 days after the last reply. New replies are no longer allowed.