Skip to content

Latest commit

 

History

History
15 lines (8 loc) · 560 Bytes

README.md

File metadata and controls

15 lines (8 loc) · 560 Bytes

CSP Angular

This application is a demonstration prototype just to show how to write a Content Security Policy.

For local environement

Write your CSP in src/environments/environment.ts and run npm start.

Customize your CSP to resolve all errors, without using script-src: unsafe-eval.

For production environement

Write your CSP in src/environments/environment.prod.ts and run npm run build.

Then, run npm run serve to expose the application. Adjust your CSP to resolve all errors, without using script-src: unsafe-eval.