Settings.allowFileAccessFromFileUrls

bool allowFileAccessFromFileUrls() @property

Get allowFileAccessFromFileUrls property.

Returns

Whether file access is allowed from file URLs. By default, when

something is loaded in a #WebKitWebView using a file URI, cross origin requests to other file resources are not allowed. This setting allows you to change that behaviour, so that it would be possible to do a XMLHttpRequest of a local file, for example.

void allowFileAccessFromFileUrls(bool propval) @property

Set allowFileAccessFromFileUrls property.

Parameters

propvalWhether file access is allowed from file URLs. By default, when something is loaded in a #WebKitWebView using a file URI, cross origin requests to other file resources are not allowed. This setting allows you to change that behaviour, so that it would be possible to do a XMLHttpRequest of a local file, for example.