Studio Apps
setStudioAppSecretBrowserExposure
Set Studio App Secret Browser Exposure
Make an app-scoped Studio secret readable by the app's served page in the browser (window.cloud.browserKeys), or take it back out.
Arguments
appIdstringrequiredThe Studio app ID the secret belongs to.environmentstringoptionalDeploy environment. 'prod' (default): the production value; 'preview': the value injected into preview deploys. A key can hold an independent value per environment.exposedbooleanrequiredtrue: the served page can read the value. false: server-only again.keystringrequiredApp secret key (UPPER_SNAKE_CASE), e.g. GOOGLE_MAPS_BROWSER_KEY.
Returns
Returns the new exposure state, never the value.
Ask for it
The Cloud routes these requests to this verb.
- let my app's map use the Maps key
- expose the browser key
- stop sending the key to the page
Pair it with
The verbs that finish the job.