Hell everyone,
since we don't have login feature for application we don't have user authentication and API are anonymous acces.
to handle this scenario we are passing static token in header and validating in server side but still it is not sufficient beacuse token is static
I need some help in creating dynamic secrets in angular and that shoul be validated in server side.
Let me know if any idea's on this.

Naimish MakwanaPosted Sep 16, 2024, 5:00 AM
To enhance security in your application, you can implement dynamic secrets in Angular and validate them on the server side. Here are some steps and ideas to help you achieve this:
1. Generate Dynamic Secrets in Angular
You can use a combination of environment variables and a service to generate dynamic secrets.
Environment Variables
Store sensitive information in environment variables to avoid hardcoding them in your source code.
Secret Generation Service
Create a service to generate dynamic secrets.
2. Attach Secret to API Requests
Use an HTTP interceptor to attach the generated secret to your API requests.
3. Validate Secret on Server Side
On the server side, validate the secret by comparing it with the expected value.
Example in Node.js
Thanks