add CORS headers

https://xmpp.org/extensions/xep-0363.html#impl
This commit is contained in:
lookshe 2025-01-22 23:41:04 +01:00
parent 5e01215867
commit 6bf77b8be4

View file

@ -1,3 +1,8 @@
Header set Access-Control-Allow-Origin "*"
Header set Access-Control-Allow-Methods "OPTIONS, HEAD, GET, PUT"
Header set Access-Control-Allow-Headers "Authorization, Content-Type"
Header set Access-Control-Allow-Credentials "true"
RewriteEngine on
RewriteCond %{REQUEST_METHOD} (DELETE|PUT)
RewriteRule ^(.*)$ index.php?uri=$1 [B,L,QSA]