Der Fehler:nunjuncks nicht wegen der Rendering-Content-Security-Politik
Uncaught Template render error: (result.html)
EvalError: Refused to evaluate a string as JavaScript because 'unsafe-eval' is not an allowed source of script in the following Content Security Policy directive: "default-src *".
Die nginx config:
[..]
more_set_headers "Content-Security-Policy:
default-src * 'unsafe-eval' 'unsave-inline';
script-src 'self' 'unsafe-inline' 'unsafe-eval' 'unsafe-inline' https://cdn.raygun.io https://cdn.segment.com https://platform.instagram.com https://www.google-analytics.com https://cdn.mxpnl.com https://maxcdn.bootstrapcdn.com;
connect-src 'self' https://api.raygun.io https://api.parse.com https://api.segment.io https://api.mixpanel.com;
img-src 'self' data: https://*.amazonaws.com https://www.google-analytics.com https://*.akamaihd.net https://www.google.com https://*.licdn.com;
style-src 'self' 'unsafe-inline' https://fonts.googleapis.com https://maxcdn.bootstrapcdn.com;
font-src 'self' https://fonts.gstatic.com https://maxcdn.bootstrapcdn.com;
frame-src https://instagram.com";
[..]
Die Frage:
Es sieht aus wie die Content-Security-Policy wird in nginx config nicht angewendet. Ich überprüfte die Header vom Server zurückgegeben und sie sind richtig eingestellt (einschließlich unsafe-inline und unsafe-eval).
Die Frage:
Hilfe? Oder genauer: Was muss ich noch tun, damit Chrome meine Nunjuncks Vorlagen rendert?
Ich bin auf der Suche nach einer Lösung, die serverseitig funktioniert (kein Chrome-Plugin).