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.]
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
Last edited: