diff options
author | zeripath <art27@cantab.net> | 2022-12-27 00:34:05 +0000 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-12-27 08:34:05 +0800 |
commit | 83640c449eb6a1b31bc09b1372cc156d114804f8 (patch) | |
tree | 091078edf87008c6f9d058c6f8f35c5ce9e97c69 /modules/markup/markdown/markdown.go | |
parent | 814b44aeafda0c31b2600895e66d7ea3d5876ca5 (diff) | |
download | gitea-83640c449eb6a1b31bc09b1372cc156d114804f8.tar.gz gitea-83640c449eb6a1b31bc09b1372cc156d114804f8.zip |
Remove ReverseProxy authentication from the API (#22219)
Since we changed the /api/v1/ routes to disallow session authentication
we also removed their reliance on CSRF. However, we left the
ReverseProxy authentication here - but this means that POSTs to the API
are no longer protected by CSRF.
Now, ReverseProxy authentication is a kind of session authentication,
and is therefore inconsistent with the removal of session from the API.
This PR proposes that we simply remove the ReverseProxy authentication
from the API and therefore users of the API must explicitly use tokens
or basic authentication.
Replace #22077
Close #22221
Close #22077
Signed-off-by: Andrew Thornton <art27@cantab.net>
Diffstat (limited to 'modules/markup/markdown/markdown.go')
0 files changed, 0 insertions, 0 deletions