aidantwoods / aidantwoods/SecureHeaders

Report missing CSP directives

未關閉
#55 0 則留言 1 個 reaction 已指派 0 人 在 GitHub 檢視
enhancement
主要語言
PHP
星號
433
分支
21
PR 合併指標
30 天內沒有已合併 PR

描述

`base-uri` must be defined to have blocking behaviour.
If `default-src` is not defined many directives will have no fallback (and so will operate as if `*` was specified if they too are undefined by the CSP).
Some key directives that should not be emitted include:
* `default-src` (obviously)
* `object-src`
* `script-src`
* `style-src`

SecureHeaders should emit a warning if any directive that falls back to `default-src` is absent from CSP **and** `default-src` is also absent.

We should also enumerate things that do not fallback to `default-src` (like `base-uri`) and warn about these separately (regardless of whether `default-src` is present).

貢獻指南

開啟貢獻指南

評估

這個 Issue 還沒有評估資料。

把新 issue 寄到你的電子郵件信箱

精選適合新手參與的 GitHub issue 摘要。