Browse Source

Update the documented CSP options to be closer to a strict and viable policy

Thibaud Colas 2 tháng trước cách đây
mục cha
commit
b3cc24899a
1 tập tin đã thay đổi với 5 bổ sung3 xóa
  1. 5 3
      .env.example

+ 5 - 3
.env.example

@@ -6,6 +6,8 @@
 
 # Careful about the quoting of directives! It is easy to break.
 # CSP_DEFAULT_SRC="'self'"
-
-# Enable this rule to allow font awesome to load from CDN
-# CSP_FONT_SRC="'self', https://cdnjs.cloudflare.com"
+# CSP_SCRIPT_SRC="'self', 'report-sample'"
+# CSP_STYLE_SRC="'self', 'report-sample'"
+# CSP_IMG_SRC="'self', blob:, i.ytimg.com, www.gravatar.com"
+# CSP_CONNECT_SRC="'self', releases.wagtail.org"
+# CSP_FRAME_SRC="'self', www.youtube.com"