Relative Content

Tag Archive for angularcontent-security-policy

Still getting inline script CSP violation after disabling optimization of scripts in Angular 18 project

I am in the early stages of setting up an Angular project. From previous experience with other projects, I’m implementing a content security policy early so we can find violations during development and handle them as they come up. Angular seems to like to inline a lot of things and makes it difficult to have a restricted content policy for styling and scripts. I’m not too worried about styling but I really don’t want to have ‘unsafe-inline’ for script-src.