I'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:
[Error] XMLHttpRequest cannot load file:///Users/koen/Desktop/test.json. Cross origin requests are only supported for HTTP. I tried setting the following two configuration options with the C api: WKPreferencesSetWebSecurityEnabled(prefsRef, false); WKPreferencesSetFileAccessFromFileURLsAllowed(prefsRef, true); But none of these seem to do anything. What am I missing?
_______________________________________________ webkit-dev mailing list webkit-dev@lists.webkit.org https://lists.webkit.org/mailman/listinfo/webkit-dev