Skip to content

Commit eb9593a

Browse files
committed
add information about CORS headers
1 parent 078f36c commit eb9593a

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

docs/self-hosting.md

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -147,6 +147,14 @@ server {
147147
]
148148
```
149149

150+
Make sure this file is served with the correct MIME type (`application/json`). Additionally, ensure the appropriate CORS headers are set to allow web clients to access it across origins. For more details, refer to the [Matrix Client-Server API: 2. Web Browser Clients](https://spec.matrix.org/latest/client-server-api/#web-browser-clients).
151+
152+
```
153+
Access-Control-Allow-Origin: *
154+
Access-Control-Allow-Methods: GET, POST, PUT, DELETE, OPTIONS
155+
Access-Control-Allow-Headers: X-Requested-With, Content-Type, Authorization
156+
```
157+
150158
> [!NOTE]
151159
> Most `org.matrix.msc4143.rtc_foci` configurations will only have one entry in
152160
> the array

0 commit comments

Comments
 (0)