I can't get CefSharp to load from a `file://` URL. to work from a remote webpage. This is what I have right now.
BrowserSettings browserSettings = new BrowserSettings();
browserSettings.FileAccessFromFileUrlsAllowed = true;
browserSettings.UniversalAccessFromFileUrlsAllowed = true;
browserSettings.DeveloperToolsDisabled = false;
As you can see, I have `FileAccessFromFileUrlsAllowed` and `UniversalAccessFromFileUrlsAllowed` set to true.
I'm trying to add a local image to the DOM with Javascript:
this.webview.ExecuteScript(@"
var img = document.createElement('img');
img.setAttribute('src','file:///C:/test.jpg');
document.getElementsByTagName('body')[0].appendChild(img);
");
It doesn't work; when I open up the developer console, this error pops up
`Not allowed to load local resource: file:///C:/test.jpg `
I've been trying to figure this out all day, thanks in advance.