Ich habe eine Angular2-Anwendung in IntelliJ und Play Framework erstellt.System.Import-Skript wird nicht in Angular ausgeführt
<script>
System.import('assets/app/main.js').catch(function(err){ console.error(err); });
</script>
Fehler folgenden Code Fehler geben: Refused to execute inline script because it violates the following Content Security Policy directive: "default-src 'self'". Either the 'unsafe-inline' keyword, a hash ('sha256-ol8t6QICwIETK9dhrEwBShFCgKGwmDHZW/nmyLH+rYs='), or a nonce ('nonce-...') is required to enable inline execution. Note also that 'script-src' was not explicitly set, so 'default-src' is used as a fallback.
immer noch derselbe Fehler - 'Fehler: Abgelehnt, um eine Zeichenfolge als JavaScript zu bewerten, da 'unsafe-eval' keine zulässige Skriptquelle in der folgenden Inhaltssicherheitsrichtlinien-Direktive ist:" default-src 'self' ". Instanziieren von http: // localhost: 9000/assets/app/main.js' –