angular-cli icon indicating copy to clipboard operation
angular-cli copied to clipboard

Hide app setting variable (like firebase details )

Open nirav4273 opened this issue 8 years ago • 4 comments

I want to hide my firebase details. after make build all environment.ts file data visible inside main.ts file. I want to hide from there.

can anyone suggest how to hide? Is it possible in angular or any way for hiding details?

nirav4273 avatar Feb 09 '18 15:02 nirav4273

All angular code is shipped to the client. How would you envision to keeping things secret in JavaScript that ships to the browser client?

wvanderdeijl avatar Feb 09 '18 22:02 wvanderdeijl

@nirav4273 you would handle this with a proxy or on a server where you authenticate (token).

ddimaria avatar Feb 11 '18 08:02 ddimaria

Duplicate of #4419

Brocco avatar Feb 12 '18 15:02 Brocco

This issue has been automatically locked due to inactivity. Please file a new issue if you are encountering a similar or related problem.

Read more about our automatic conversation locking policy.

This action has been performed automatically by a bot.