Thursday, January 2, 2020

HOW - To add Security headers & web.config for different Environments in Angular

Internet Information Services Angular multiple environment setup security header in angular app


Create web.config files

Go to src/ and create:

  • web.dev.config - for DEV
  • web.uat.config- for UAT
  • 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