This repository has been archived on 2024-10-13. You can view files and clone it, but cannot push or open issues or pull requests.
nix-packages/akkoma/jxl-polyfill.patch

14 lines
649 B
Diff
Raw Normal View History

2022-12-03 09:26:17 +00:00
diff --git a/lib/pleroma/web/plugs/http_security_plug.ex b/lib/pleroma/web/plugs/http_security_plug.ex
2023-01-04 11:47:02 +00:00
index b1f1ada94..8bae50900 100644
2022-12-03 09:26:17 +00:00
--- a/lib/pleroma/web/plugs/http_security_plug.ex
+++ b/lib/pleroma/web/plugs/http_security_plug.ex
2023-01-04 11:47:02 +00:00
@@ -114,7 +114,7 @@ defp csp_string(conn) do
style_src = "style-src 'self' '#{nonce_tag}'"
font_src = "font-src 'self'"
2022-12-03 09:26:17 +00:00
2023-01-04 11:47:02 +00:00
- script_src = "script-src 'self' '#{nonce_tag}'"
2022-12-20 07:51:50 +00:00
+ script_src = "script-src 'self' 'unsafe-eval' '#{nonce_tag}'"
2022-12-03 09:26:17 +00:00
report = if report_uri, do: ["report-uri ", report_uri, ";report-to csp-endpoint"]
insecure = if scheme == "https", do: "upgrade-insecure-requests"