Hi ,
I am trying to load a few image files from my local directory (file:///C:/) to my HTML which I have served by a server (localhost). But I get the error "Cannot load local resource " for this . I read a few articles online that pointed that this is not possible in Chrome (due to security issues) but there is a flag called --allow-file-access-from-files that can be turned on to let this happen.
Additionally, My HTML file also uses a json file to show some information using javascript. So When I tried loading the HTML from file:///C:/ instead of a server (localhost) to accomodate for the images, I get the "cross origin request" even though I put my JSON file locally too ( like file:///C:/ something.json). Is there any flags that can be turned on to remove this cross origin request error that cef browser is giving me ? something like --disable-web-security etc ? How can I turn it on in the code ? I could use any example on this if any.
Thank you .