staging: add CORS for matrix

Signed-off-by: Kevin Fenzi <kevin@scrye.com>
This commit is contained in:
Kevin Fenzi 2021-08-30 17:01:28 -07:00
parent d65041c2c1
commit b4c0acd1b9
2 changed files with 10 additions and 0 deletions

View file

@ -1,5 +1,9 @@
DocumentRoot /srv/web/fedora.im/
<IfModule mod_headers.c>
Header add 'Access-Control-Allow-Origin: *'
</IfModule>
RewriteEngine On
RewriteRule "^/.well-known/matrix/(.*)" "/srv/web/fedora.im/.well-known-matrix-$1-fedora-im" [L]
RewriteRule (.*) https://getfedora.org [NE]

View file

@ -1,2 +1,8 @@
<LocationMatch "/srv/web/.well-known-matrix*"
<IfModule mod_headers.c>
Header add 'Access-Control-Allow-Origin: *'
</IfModule>
</Location>
RewriteEngine On
RewriteRule "^/.well-known/matrix/(.*)" "/srv/web/.well-known-matrix-$1-fedoraproject-org" [L]