DEV Community

Hrn Svncハルン
Hrn Svncハルン

Posted on

Providing own API-Keys

Hey everyone! Hope you make it through these ruff times. I have a simple question here:

I want to make sure that only my Angular-App can use my NodeJS api. I know that many big api's provide api keys like google or AWS does. Is there a way to provide your own api key's for your app's?

Thx for you help
Have a great day!

Top comments (1)

Collapse
 
barrenechea profile image
Sebastian Barrenechea

Effectively, you can add some custom header on every request with some key, which must be validated through a middleware on your backend before processing the actual request.

Still, every network request could be monitored and eventually that "custom header" to be reverse engineered 🤔