dendrite/internal
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
..
caching de-MSC-ifying space summaries (MSC2946) (#3134) 2023-07-20 15:06:05 +01:00
eventutil Move pseudoID ClientEvent hotswapping to a common location (#3199) 2023-09-15 15:25:09 +00:00
fulltext refactor: update GMSL (#3058) 2023-04-19 15:50:33 +01:00
hooks Remove gmsl.HeaderedEvent (#3068) 2023-04-27 12:54:20 +01:00
httputil Make OPTIONS method on MSC3916 endpoints available without authentication. 2024-09-20 15:08:42 +08:00
pushgateway Add basic runtime tracing (#2996) 2023-03-13 16:45:14 +01:00
pushrules Implement MSC3987, fix setting Element Android notifications (#3242) 2023-10-24 11:51:08 +02:00
sqlutil Implement MSC3916 (#3397) 2024-08-16 12:37:59 +02:00
transactions Scope transactions to endpoints (#2799) 2022-10-17 14:48:35 +02:00
log.go Remove polylith/API mode (#2967) 2023-02-14 12:47:47 +01:00
log_unix.go Remove polylith/API mode (#2967) 2023-02-14 12:47:47 +01:00
log_windows.go Remove polylith/API mode (#2967) 2023-02-14 12:47:47 +01:00
mutex.go Add a per-room mutex to federationapi when processing transactions (#1810) 2021-03-30 10:01:32 +01:00
tracing.go Add basic runtime tracing (#2996) 2023-03-13 16:45:14 +01:00
tracing_test.go Add basic runtime tracing (#2996) 2023-03-13 16:45:14 +01:00
transactionrequest.go Update gmsl to use new validated RoomID on PDUs (#3200) 2023-09-15 14:39:06 +00:00
transactionrequest_test.go Take advantage of changes in recent Go versions (#3361) 2024-05-01 00:38:36 +00:00
validate.go Allow + in MIDs as per MSC4009 (#3313) 2024-01-25 21:17:20 +01:00
validate_test.go Allow + in MIDs as per MSC4009 (#3313) 2024-01-25 21:17:20 +01:00
version.go Version 0.13.8 (#3421) 2024-09-13 15:06:07 +02:00