fix access control allow origin headers

This commit is contained in:
Charlotte 🦝 Delenk 2022-08-27 14:20:51 +01:00
parent ca50220612
commit 891635fb7b
Signed by: darkkirb
GPG key ID: AB2BD8DAF2E37122
2 changed files with 5 additions and 6 deletions

View file

@ -9,7 +9,6 @@ _: {
servers {
protocol {
experimental_http3
strict_sni_host on
}
}
'';

View file

@ -155,7 +155,7 @@ in {
import baseConfig
handle /_matrix/media/* {
reverse_proxy http://localhost:8008 {
header_down Access-Control-Allow-Origin '*'
header_down Access-Control-Allow-Origin *
}
}
@ -175,13 +175,13 @@ in {
}
handle /.well-known/matrix/server {
header Access-Control-Allow-Origin '*'
header Content-Type 'application/json'
header Access-Control-Allow-Origin *
header Content-Type application/json
}
handle /.well-known/matrix/client {
header Access-Control-Allow-Origin '*'
header Content-Type 'application/json'
header Access-Control-Allow-Origin *
header Content-Type application/json
}
'';
};