From 6bf77b8be456e0d5086a48ad43bf0dbab0af256f Mon Sep 17 00:00:00 2001 From: lookshe Date: Wed, 22 Jan 2025 23:41:04 +0100 Subject: [PATCH] add CORS headers https://xmpp.org/extensions/xep-0363.html#impl --- storage-backend/.htaccess | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/storage-backend/.htaccess b/storage-backend/.htaccess index b606271..253545a 100644 --- a/storage-backend/.htaccess +++ b/storage-backend/.htaccess @@ -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]