<div dir="ltr">I&#39;m trying to disable some web security for my Mac desktop app. Currently, if I try to load a local json file I get the error:<br><div><br></div><div>[Error] XMLHttpRequest cannot load file:///Users/koen/Desktop/test.json. Cross origin requests are only supported for HTTP.<br></div><div><br></div><div>I tried setting the following two configuration options with the C api:</div><div><div>WKPreferencesSetWebSecurityEnabled(prefsRef, false);</div><div>WKPreferencesSetFileAccessFromFileURLsAllowed(prefsRef, true);</div></div><div><br></div><div>But none of these seem to do anything.</div><div><br></div><div>What am I missing?</div></div>