60. Privacy on client-callable Script Includes
By default, client-callable script includes that do not explicitly set visibility, are public.
glide.script.ccsi.ispublic property is to enable privacy control over all client-callable script includes accessed by public pages.
But when we add this property to false changes their visibility in public pages making all client-callable script includes private. Unable to call those script includes from public pages.
Workaround:
If we want the client callable script include to be accessed by public,
You can change the privacy setting for an individual client-callable script include by adding the isPublic() function in the script include code.
The isPublic() function takes precedence over the glide.script.ccsi.ispublic property. Add the following syntax to the script include before defining function. This workaround enables client callable script includes accessible by public pages.(External user)
isPublic: function() {
return true;
},
https://medium.com/@LearnITbyPrashant/60-privacy-on-client-callable-script-includes-47219f429f95?source=rss-d005fc598f0a------2