HOW - To add Security headers & web.config for different Environments in Angular
Create web.config files
Go to src/ and create:
- web.prod.config - for PROD
- web.config - just an empty file to satisfy angular.json assets in architect → build → options.
The example of web.dev.config (the most important part is the Content Security Policy).
No comments:
Post a Comment