Skip to content
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 4 additions & 1 deletion obs-browser-source.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -177,12 +177,15 @@ bool BrowserSource::CreateBrowser()
cefBrowserSettings.default_font_size = 16;
cefBrowserSettings.default_fixed_font_size = 16;

#if CHROME_VERSION_BUILD < 4430
#if ENABLE_LOCAL_FILE_URL_SCHEME
if (is_local) {
/* Disable web security for file:// URLs to allow
* local content access to remote APIs */
* local content access to remote APIs
* This flag was removed from CEF >= 91 */
cefBrowserSettings.web_security = STATE_DISABLED;
}
#endif
#endif

cefBrowser = CefBrowserHost::CreateBrowserSync(
Expand Down