소스 검색

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

Thibaud Colas 2 달 전
부모
커밋
b3cc24899a
1개의 변경된 파일5개의 추가작업 그리고 3개의 파일을 삭제
  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"