react-player icon indicating copy to clipboard operation
react-player copied to clipboard

Error parsing header X-XSS-Protection: 1; When playing youtube videos

Open davidwwu opened this issue 8 years ago • 23 comments

This issue popped up sometime between last week and this week which causes issues such as setting the playing=true state does not work and many more. The demo site also gives this error. Here's the Full text

Error parsing header X-XSS-Protection: 1; mode=block; 
report=https://www.google.com/appserve/security-bugs/log/youtube: insecure reporting URL for 
secure page at character position 22. The default protections will be applied.

davidwwu avatar Dec 03 '17 07:12 davidwwu

after a little more investigation, turns out this is a chrome-specific error. I think the error will go away in the future since this is not the first time that the error pops up.

davidwwu avatar Dec 04 '17 06:12 davidwwu

This is showing for me on every site that I embed YouTube on

dribgib avatar Jan 29 '18 16:01 dribgib

+1

eapostol avatar Feb 09 '18 02:02 eapostol

it works fine in incognito window tho, i have the same error, tell me how you fixed yours? maybe?

frozenscar avatar Feb 09 '18 16:02 frozenscar

I think it has something to do with prefetching?

dribgib avatar Feb 09 '18 17:02 dribgib

Yea, I'm getting this now. My server was upgraded to EasyApache 4 and I've been having quite a few issues but this one surprised me as I have other blogs that are working on other websites. IOn the Network tab, it shows the following TWICE with the 2nd one being the last thing called before getting the dreaded 404 blank page.

data:image/svg+xml;charset=utf-8;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIGhlaWdodD0iMzBweCIgd2lkdGg9IjMwcHgiIHZpZXdCb3g9Ii0xIC0xIDMxIDMxIj48Zz48cGF0aCBkPSJNMjkuNDQ5LDE0LjY2MiBDMjkuNDQ5LDIyLjcyMiAyMi44NjgsMjkuMjU2IDE0Ljc1LDI5LjI1NiBDNi42MzIsMjkuMjU2IDAuMDUxLDIyLjcyMiAwLjA1MSwxNC42NjIgQzAuMDUxLDYuNjAxIDYuNjMyLDAuMDY3IDE0Ljc1LDAuMDY3IEMyMi44NjgsMC4wNjcgMjkuNDQ5LDYuNjAxIDI5LjQ0OSwxNC42NjIiIGZpbGw9IiNmZmYiIHN0cm9rZT0iI2ZmZiIgc3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1IDIzLjA3OCwxMy45OTEgQzIzLjA3OCwxOC40NjMgMjAuMjM5LDIyLjA2MiAxNi4yOTcsMjIuMDYyIEMxNC45NzMsMjIuMDYyIDEzLjcyOCwyMS4zNzkgMTMuMzAyLDIwLjU3MiBDMTMuMzAyLDIwLjU3MiAxMi42NDcsMjMuMDUgMTIuNDg4LDIzLjY1NyBDMTIuMTkzLDI0Ljc4NCAxMS4zOTYsMjYuMTk2IDEwLjg2MywyNy4wNTggQzEyLjA4NiwyNy40MzQgMTMuMzg2LDI3LjYzNyAxNC43MzMsMjcuNjM3IEMyMS45NSwyNy42MzcgMjcuODAxLDIxLjgyOCAyNy44MDEsMTQuNjYyIEMyNy44MDEsNy40OTUgMjEuOTUsMS42ODYgMTQuNzMzLDEuNjg2IiBmaWxsPSIjYmQwODFjIj48L3BhdGg+PC9nPjwvc3ZnPg==

LukeDouglas2 avatar Feb 10 '18 04:02 LukeDouglas2

It's a known bug in current Google Chrome and Chromium: https://bugs.chromium.org/p/chromium/issues/detail?id=807304

In current version of their browser Chrome developers had restricted the X-XSS-Protection's report field URL to the same domain origin for some security reasons. So, when you embed video with some embed code, at it downloads from another server where the header report=https://www.google.com/ is set, and while your page is not hosted at google.com domain - the error message occurs.

Just wait till they'll sort this out.

phpony avatar Feb 12 '18 11:02 phpony

Happens in incognito as well.

estlacksensory avatar Feb 16 '18 19:02 estlacksensory

Is there a fix for this? Or do we just wait it out, because so far... My video isn't even showing.

Unlighten avatar Feb 22 '18 15:02 Unlighten

@Unlighten this shouldn't prevent your video from showing, unless something else is going on. What URL are you trying to play?

cookpete avatar Feb 23 '18 06:02 cookpete

Has anyone found a solution for this issue?

pdeka avatar Feb 24 '18 04:02 pdeka

Hi everybody, I'm having the same problem with a couple of php apps. Is there any way to bypass this error or supress the msg.

Best Regards, Hector F.

h3ct0rjs avatar Feb 24 '18 12:02 h3ct0rjs

Hello! I have the same problem :(

Sharlyn97 avatar Feb 24 '18 19:02 Sharlyn97

@Sharlyn97 @h3ct0rjs @pdeka just to be clear - the error message mentioned here appears everywhere. Like, just open every Youtube video and check the console - here it is. If Google - the owner both of Youtube and Chrome - can't fix this, how anyone else can help?

By the way, this error message is only informing about the current state of appliance of X-XSS-Protection politics. Those politics normally has nothing to do with media content or script functionality on page, they should not affect play-ability of any video or audio. So if something is not working and video is not showing - dig further, check for any other errors, open another issue with more details and just ignore this concrete warning message. It's colored red and looks dangerous, but it's informational, going from browser's internals and is not interfering with scripts on page in any manner.

phpony avatar Feb 24 '18 21:02 phpony

thanks

2018-02-24 15:53 GMT-06:00 Volkov Maksim [email protected]:

@Sharlyn97 https://github.com/sharlyn97 @h3ct0rjs https://github.com/h3ct0rjs @pdeka https://github.com/pdeka just to be clear - the error message mentioned here appears everywhere. Like, just open every Youtube video and check the console - here it is. If Google - the owner both of Youtube and Chrome - can't fix this, how anyone else can help?

By the way, this error message is only informing about the current state of appliance of X-XSS-Protection politics. Those politics normally has nothing to do with media content or script functionality on page, they should not affect play-ability of any video or audio. So if something is not working and video is not showing - dig further, check for any other errors, open another ticked with more details and just ignore this concrete message. It's colored red and looks dangerous, but it's informational, going from browser's internals and is not interfering with scripts on page in any manner.

— You are receiving this because you were mentioned. Reply to this email directly, view it on GitHub https://github.com/CookPete/react-player/issues/288#issuecomment-368263216, or mute the thread https://github.com/notifications/unsubscribe-auth/AOmtDKRiyBdbcX2kdkcUrAD2OwuOaByXks5tYITNgaJpZM4QzoQs .

Sharlyn97 avatar Feb 24 '18 21:02 Sharlyn97

@google @aarongable

h3ct0rjs avatar Feb 25 '18 03:02 h3ct0rjs

@CookPete Found the issue for video not showing. I guess I like to spell responsive as "reponsive." Feelsbadman. Anyways... The video is showing, however I cannot play any videos.

Unlighten avatar Feb 25 '18 22:02 Unlighten

This is my problem too. I don't have any problem playing the youtube video but the console error is not pleasing to the eye lol. I thought I'm just having some CORS errors. Anyway, does anyone know how remove the error from the console?

Daviers01 avatar Feb 28 '18 10:02 Daviers01

Hola, yo también presento ese mis mensaje de error, mientras manipulo la api de youtube o incrusto un video del canal, pero efectivamente este mensaje no afecta la funcionalidad para poder visualizar el video correctamente. Actualmente puedo ver los videos sin problema y utilizar sus funcionalidades.

codigovacio avatar Feb 28 '18 21:02 codigovacio

i can play videos using tools for developers then refresh with responsive or use a mobile choice screen then you can play the videos and watch them on fullscreen ... but the errors still appears and i had to do this each time i want to see a video on youtube. hope this help to someone bye.

PabloMonfort avatar Mar 02 '18 21:03 PabloMonfort