dendrite/internal
arenekosreal df770dae0a
Make OPTIONS method on MSC3916 endpoints available without auth (#3431)
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.

### Pull Request Checklist

<!-- Please read
https://matrix-org.github.io/dendrite/development/contributing before
submitting your pull request -->

* [x] I have added Go unit tests or [Complement integration
tests](https://github.com/matrix-org/complement) for this PR _or_ I have
justified why this PR doesn't need tests
* [x] Pull request includes a [sign off below using a legally
identifiable
name](https://matrix-org.github.io/dendrite/development/contributing#sign-off)
_or_ I have already signed off privately

Signed-off-by: `arenekosreal
<17194552+arenekosreal@users.noreply.github.com>`

Signed-off-by: arenekosreal <17194552+arenekosreal@users.noreply.github.com>
2024-09-22 10:33:54 +02: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 auth (#3431) 2024-09-22 10:33:54 +02: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