Fix access control allow origin?

This commit is contained in:
Charlotte 🦝 Delenk 2022-04-30 09:02:19 +01:00
parent ed000319fb
commit 22c90930ca
Signed by: darkkirb
GPG key ID: AB2BD8DAF2E37122

View file

@ -79,11 +79,17 @@ in
proxyWebsockets = true;
extraConfig = ''
proxy_ssl_server_name on;
proxy_hide_header Access-Control-Allow-Origin;
add_header Access-Control-Allow-Origin '*' always;
'';
};
locations."/_matrix/media" = {
proxyPass = "http://localhost:8008";
proxyWebsockets = true;
extraConfig = ''
proxy_hide_header Access-Control-Allow-Origin;
add_header Access-Control-Allow-Origin '*' always;
'';
};
locations."/.well-known/matrix/server" = {
extraConfig = ''