mirror of
https://github.com/discourse/discourse.git
synced 2025-03-27 07:05:36 +08:00

Certain rogue bots such as Yandex may send across invalid CSP reports when CSP report collection is enabled. This ensures that invalid reports will not cause log floods and simply returns a 422 error. Co-authored-by: Alan Guo Xiang Tan <gxtan1990@gmail.com>