Question / Help OBS Browser Source has Content Security Policy issues

Yurlyn

Member
(Moved from Mantis to here).

My browser source is having a Content Security Policy issue and won't load any website nor even a text file both locally or online. This results in constant 1% CPU usage of obs-browser-page.exe for every unique browser source added and sometimes even around 13% CPU usage for one instance. This is an excerpt of one of my logs in a new scene collection:

15:03:40.251: User added source 'Browser' (browser_source) to scene 'Scene'
15:03:42.084: obs-browser: Refused to load the stylesheet 'data:text/css;charset=utf-8;base64,Ym9keSB7IGJhY2tncm91bmQtY29sb3I6IHJnYmEoMCwgMCwgMCwgMCk7IG1hcmdpbjogMHB4IGF1dG87IG92ZXJmbG93OiBoaWRkZW47IH0=' because it violates the following Content Security Policy directive: "style-src 'self' 'unsafe-inline' ".
15:03:42.084: (source: data:text/css;charset=utf-8;base64,Ym9keSB7IGJhY2tncm91bmQtY29sb3I6IHJnYmEoMCwgMCwgMCwgMCk7IG1hcmdpbjogMHB4IGF1dG87IG92ZXJmbG93OiBoaWRkZW47IH0=:1)

I'm not entirely sure what's causing this and it's on my pc only. My laptop seems fine and even copying the browser source from my laptop to the pc or re-installing OBS entirely does not seem to work. I'm on the latest OBS Studio (23.1.0) as well as the latest OBS Browser Source (2.3.1) that comes with it.
[Edit: Fenrir said on Mantis: "Content security policies are defined by the server sending the content, not by us." but that answer doesn't fit the situation as browser sources work on my laptop which is on the same wired network as my pc. Text files also get loaded on my laptop's browser source but not on my pc but those don't even have policies defined at all. Which is also part of the reason why I posted it on Mantis and not on the forum as this seems like a situation that requires elevation as well that I can't seem to get the help I need on Discord.
Another reason for posting it on Mantis originally is the part from one of the logs which seems like a development kind of issue:
13:42:11.229: obs-browser: Uncaught TypeError: Cannot read property 'appendChild' of undefined (source: data:text/css;charset=utf-8;base64,Ym9keSB7IGJhY2tncm91bmQtY29sb3I6IHJnYmEoMCwgMCwgMCwgMCk7IG1hcmdpbjogMHB4IGF1dG87IG92ZXJmbG93OiBoaWRkZW47IH0=:1)]


It all just stopped working from one moment to the next. A crash of OBS may have caused this but I don't know for sure and it would seem weird that it can't be solved by a reinstall.

[Edit: What files are directly used by or linked to the browser source? If any files are outside of the OBS plugin folder please include those as I can try to replace them to see if there is a corruption going on somewhere. Again, I've already completely re-installed OBS Studio.]
 

Attachments

  • 2019-05-26 13-39-00.txt
    87.4 KB · Views: 35
  • 2019-05-26 16-09-32.txt
    17 KB · Views: 19
  • Crash 2019-05-09 21-28-22.txt
    150 KB · Views: 17
  • Crash 2019-05-09 22-00-20.txt
    150 KB · Views: 15
Last edited:

R1CH

Forum Admin
Developer
Do you have any antivirus or similar software that might be messing around and injecting stuff into web pages?
 

Yurlyn

Member
Not that I know of. I don't have that plugin in stalled from Avast that can do that. I also re-installed that between the crash and now so that could't be it. Plus, it'd be weird if it worked one moment, an OBS crash happened and then it didn't work anymore.
 

Yurlyn

Member
Any help with this? I really would like to get rid of having to use NDI from my laptop to my pc to show my chats and other browser sources on my pc.
 

NiteskyNZ

New Member
i'm also trying to see where these issues stem from. i have stream elements overlays that work, but leave these same errors in the logs and imagine are not going to bode well for long streams were these may accumulate. .. following.
 
Top