fix access control allow origin headers
This commit is contained in:
parent
ca50220612
commit
891635fb7b
2 changed files with 5 additions and 6 deletions
|
@ -9,7 +9,6 @@ _: {
|
||||||
servers {
|
servers {
|
||||||
protocol {
|
protocol {
|
||||||
experimental_http3
|
experimental_http3
|
||||||
strict_sni_host on
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
'';
|
'';
|
||||||
|
|
|
@ -155,7 +155,7 @@ in {
|
||||||
import baseConfig
|
import baseConfig
|
||||||
handle /_matrix/media/* {
|
handle /_matrix/media/* {
|
||||||
reverse_proxy http://localhost:8008 {
|
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 {
|
handle /.well-known/matrix/server {
|
||||||
header Access-Control-Allow-Origin '*'
|
header Access-Control-Allow-Origin *
|
||||||
header Content-Type 'application/json'
|
header Content-Type application/json
|
||||||
}
|
}
|
||||||
|
|
||||||
handle /.well-known/matrix/client {
|
handle /.well-known/matrix/client {
|
||||||
header Access-Control-Allow-Origin '*'
|
header Access-Control-Allow-Origin *
|
||||||
header Content-Type 'application/json'
|
header Content-Type application/json
|
||||||
}
|
}
|
||||||
'';
|
'';
|
||||||
};
|
};
|
||||||
|
|
Loading…
Reference in a new issue