applicationName/preferences.json. The first part of the path (before the first "/") is called the
dataDomainand an application request permissions to a dataDomain.
mySky.setJSONmethods, which can be read about in the skynet-js docs. Additionally, discoverable files for any UserID can be read using
client.file.getJSON( userId, path)without permissions or loading a MySky client.
dataDomain, you're requesting full permissions for skyfiles using that "data domain". A MySky file's dataDomain is the root-level directory of its path.
The MySky file saved at
skyposts.hns/posts/123.jsonhas a dataDomain of
skyposts.hns. To write to this file, you'd need permissions to the
skyapp.hns.siasky.netrequesting access to the dataDomain of
skyapp.hnswill be automatically authorized and users will not be prompted for permissions. If that site is accessed using a skylink url like
skyapp.hnsdataDomain, the user will be prompted for permissions.