Can't insert youtube videos

#1

Hello guys, since WKWebView enforces CORS, I can’t insert YouTube videos in my App because Youtube doesn’t allow Access-Control-Allow-Origin.

I get the following error when trying to play a video:

Failed to load https://r2---sn-vov-8aje.googlevideo.com/videoplayback?keepalive=yes&expire=1533217875&aitags=133%2C134%2C135%2C136%2C137%2C160%2C242%2C243%2C244%2C247%2C248%2C278&lmt=1531551991405141&requiressl=yes&pl=24&mime=video%2Fwebm&source=youtube&signature=1B1B7423366C3BD0508169B6973C28BD5F6E2573.9842094EFF07FFCC21E67E412C9D20CB7DE0157E&fvip=2&sparams=aitags%2Cclen%2Cdur%2Cei%2Cgir%2Cid%2Cinitcwndbps%2Cip%2Cipbits%2Citag%2Ckeepalive%2Clmt%2Cmime%2Cmm%2Cmn%2Cms%2Cmv%2Cpl%2Crequiressl%2Csource%2Cexpire&key=yt6&itag=278&ei=87diW7u2GfKLxgL5jor4Cw&c=WEB_EMBEDDED_PLAYER&mn=sn-vov-8aje%2Csn-h5q7knez&mm=31%2C29&ipbits=0&id=o-AK4vHiBHbG_9kolvQXMWPLkOoqCzVoElMiIYzOS32UiD&gir=yes&initcwndbps=835000&ip=62.43.207.163&clen=5072697&dur=458.600&mv=m&mt=1533196199&ms=au%2Crdu&alr=yes&cpn=B-huYDQwn6zWMUBy&cver=20180801&range=0-67274&rn=39&rbuf=0: The value of the 'Access-Control-Allow-Origin' header in the response must not be the wildcard '*' when the request's credentials mode is 'include'. Origin 'https://www.youtube.com' is therefore not allowed access. The credentials mode of requests initiated by the XMLHttpRequest is controlled by the withCredentials attribute.

How could I solve this?

Thanks.