Hallo! Ich habe ein Problem mit CSP, wie kann ich das beheben?
Refused to execute inline script because it violates the following Content Security Policy directive: "script-src https://mydomain.com/logs/ https://mydomain.com/sidekiq/ https://mydomain.com/mini-profiler-resources/ https://mydomain.com/assets/ https://mydomain.com/brotli_asset/ https://mydomain.com/extra-locales/ https://mydomain.com/highlight-js/ https://mydomain.com/javascripts/ https://mydomain.com/plugins/ https://mydomain.com/theme-javascripts/ https://mydomain.com/svg-sprite/ https://mydomain.com". Either the 'unsafe-inline' keyword, a hash ('sha256-ScCk7JwXKy22dTO0VFM7aV1chV+yd/MUda4X6VnGans='), or a nonce ('nonce-...') is required to enable inline execution.
Für den Test bin ich in einen Safe Mode gegangen, im Safe Mode gibt es das gleiche Problem.
Ich möchte den CSP-Schutz nicht deaktivieren und habe keine externen Skripte. Ich habe versucht, alle Plugins und Komponenten des Themas zu deaktivieren, aber es hat nicht geholfen.
Wie kann ich die Standard-CSP-Direktiven im Header ändern, um img-src hinzuzufügen, ohne ein Meta-Tag zu verwenden? Ich habe dies in Rails versucht, aber es hat sich nichts geändert: