CSRF middleware: Add flag to skip login cookie check (#66806)

* CSRF middleware: add flag to skip login cookie check

* Update docs/sources/setup-grafana/configure-grafana/_index.md

Co-authored-by: Christopher Moyer <35463610+chri2547@users.noreply.github.com>

---------

Co-authored-by: Christopher Moyer <35463610+chri2547@users.noreply.github.com>
This commit is contained in:
Bruno
2023-04-24 10:11:08 -03:00
committed by GitHub
co-authored by Christopher Moyer
parent 5f16cd5124
commit d4715a6f04
6 changed files with 141 additions and 35 deletions
@@ -679,6 +679,10 @@ List of additional allowed URLs to pass by the CSRF check. Suggested when authen
List of allowed headers to be set by the user. Suggested to use for if authentication lives behind reverse proxies.
### csrf_always_check
Set to `true` to execute the CSRF check even if the login cookie is not in a request (default `false`).
## [snapshots]
### enabled