Compare commits

...
Sign in to create a new pull request.

1 commit

Author SHA1 Message Date
6bf77b8be4 add CORS headers
https://xmpp.org/extensions/xep-0363.html#impl
2025-01-22 23:41:04 +01:00

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]