Allow Safari extensions to access files
There is no way to enable this. Safari extensions are restricted to accessing the extensions folder and nowhere else.


  If you need to access local resources, use safari.extension.baseURI + “relative path and filename”. You cannot access resources on the user’s hard drive outside of the extensions folder.


Source: Injecting Scripts - Safari Extensions Development Guide