Add Acces Controll Header to enable CORS

Had problems with CORS on my matrix clients, this fixed it for me.
This commit is contained in:
wuast94 2023-04-24 15:47:52 +02:00 committed by GitHub
parent 8f28666916
commit 97ab11d4c8
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 0 deletions

View File

@ -21,6 +21,7 @@
add_header X-Frame-Options "SAMEORIGIN" always; add_header X-Frame-Options "SAMEORIGIN" always;
add_header X-Permitted-Cross-Domain-Policies none; add_header X-Permitted-Cross-Domain-Policies none;
add_header Referrer-Policy strict-origin; add_header Referrer-Policy strict-origin;
add_header Access-Control-Allow-Origin *;
index index.php index.html; index index.php index.html;