You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
string (optional) - Specifies a script that will be loaded before other scripts run in the page. This script will always have access to node APIs no matter whether node integration is turned on or off. The value should be the absolute file path to the script. When node integration is turned off, the preload script can reintroduce Node global symbols back to the global scope.
Asarmor currently doesn't support preload scripts because they run before decryption of the render process occurred.
It would be nice if we could do the decryption within the preload script instead. That way we should also be able to disable nodeIntegration, which increases overall security as well. If that's not possible, it would be nice to at least support preload scripts one way or the other, because now they just don't work at all - or mention it's a caveat in README.md.
The text was updated successfully, but these errors were encountered:
Hi @sleeyax how do i prevent the preload.js from being encrypted?
As clearly stated in this issue, preload scripts are NOT SUPPORTED. So, for now, you can't prevent it from being encrypted. Don't use preload scripts at all if you can.
From the electron docs:
Asarmor currently doesn't support preload scripts because they run before decryption of the render process occurred.
It would be nice if we could do the decryption within the preload script instead. That way we should also be able to disable
nodeIntegration
, which increases overall security as well. If that's not possible, it would be nice to at least support preload scripts one way or the other, because now they just don't work at all - or mention it's a caveat in README.md.The text was updated successfully, but these errors were encountered: