staging: add CORS for matrix
Signed-off-by: Kevin Fenzi <kevin@scrye.com>
This commit is contained in:
parent
d65041c2c1
commit
b4c0acd1b9
2 changed files with 10 additions and 0 deletions
|
@ -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]
|
||||
|
|
|
@ -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]
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue