Architecture
Zero Trust and Client-Side JavaScript
Zero trust asks you to stop granting trust because of where a request came from, and to verify every one explicitly. The browser is the clearest case in the whole model, and being clear about it makes the protection question easier rather than harder.
The Short Version
The browser is the easy case
Nothing running on a device you do not control can be a verification point. What ships to a browser is a published artifact, and protection changes how long it takes to understand, not who is permitted to run it.
Verify server-sideEvery decision with a consequence is re-made where you control the outcome
Protection is a cost controlIt raises the work needed to understand a bundle, not the authority to execute it
Claims stay checkableAn architecture review should be given boundaries, not adjectives