Shidomaru NeveRage
Shidomaru NeveRage

Reputation: 276

Environment variable are not hidden (secure)?

I found with my browser inspector some private credentials located in my environment file. They're not hidden ? That's not secure... I did something wrong ?

enter image description here

Upvotes: 1

Views: 1830

Answers (1)

SnorreDan
SnorreDan

Reputation: 2910

If you included them in your environment.ts in your Angular project then they will not be hidden. You can not include any secret values directly in your front-end Angular project as everything will be transferred to the client.

If you need to use a secret of some kind then usually they are only accessible by your back-end code and hidden behind your API.

Upvotes: 3

Related Questions