Safari Extensions – Allow Safari Extensions to Access Files

macossafarisafari-extensions

I installed a Safari extension. I need to allow this extension to access files on mu system. Chrome has option looking like this:

enter image description here

I want the same for Safari. Where can I do this?

Best Answer

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