Ajout CORS policy

neo
RatCornu 2025-01-27 04:08:11 +01:00
parent 0a20628504
commit 07aeb7f188
No known key found for this signature in database
GPG Key ID: B3BE02E379E6E8E2
1 changed files with 1 additions and 0 deletions

View File

@ -147,6 +147,7 @@
locations."/_matrix" = { locations."/_matrix" = {
proxyPass = "http://localhost:8008"; proxyPass = "http://localhost:8008";
extraConfig = '' extraConfig = ''
add_header 'Access-Control-Allow-Origin' '*';
proxy_set_header X-Forwarded-For $remote_addr; proxy_set_header X-Forwarded-For $remote_addr;
proxy_set_header X-Forwarded-Proto $scheme; proxy_set_header X-Forwarded-Proto $scheme;
proxy_set_header Host $host; proxy_set_header Host $host;