问题
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 ?
回答1:
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.
来源:https://stackoverflow.com/questions/55443260/environment-variable-are-not-hidden-secure