My project in Angular 6.2.8, was going very well. However, this error started to appear on the console:
Refused to execute inline script because it violates the following Content Security Policy directive: "script-src 'self'". Either the 'unsafe-inline' keyword, a hash ('sha256-2P8mXF+NOGY5a6oJ1jDjLINrckn9RgJYdEesn+Qf4rQ='), or a nonce ('nonce-...') is required to enable inline execution.
Does anyone have any idea how I can fix this?
The solution worked for me
As well as a CSP in my index.html (from MSN docs)