dendrite/internal/httputil
arenekosreal 29028d775a
Make OPTIONS method on MSC3916 endpoints available without authentication.
OPTIONS method is usually sent by browser in preflight requests,
most of the time we cannot control preflight request to add auth header.

Synapse will return a 204 response directly without authentication for
those OPTIONS method.

According to firefox's documentation, both 200 and 204 are acceptable
so I think there is no need to change handler in dendrite.

This closes https://github.com/matrix-org/dendrite/issues/3424

No need to add a test because this is just a fix and I have tested on my
Cinny Web client personally.

Signed-off-by: arenekosreal <17194552+arenekosreal@users.noreply.github.com>
2024-09-20 15:08:42 +08:00
..
httpapi.go Make OPTIONS method on MSC3916 endpoints available without authentication. 2024-09-20 15:08:42 +08:00
httpapi_test.go Rehuffle where things are in the internal package (#1122) 2020-06-12 14:55:57 +01:00
paths.go Remove polylith/API mode (#2967) 2023-02-14 12:47:47 +01:00
rate_limiting.go Move json errors over to gmsl (#3080) 2023-05-09 22:46:49 +00:00
routing.go Return correct Content-Type for unrecognized requests (#3355) 2024-04-08 07:51:04 +02:00
routing_test.go Return correct Content-Type for unrecognized requests (#3355) 2024-04-08 07:51:04 +02:00