From db070c00e337c87106c3c80b19be112f8ac56322 Mon Sep 17 00:00:00 2001 From: Sim4n6 <13036531+Sim4n6@users.noreply.github.com> Date: Sun, 13 Jul 2025 10:36:14 +0100 Subject: [PATCH] Update bbrf-init.sh --- couchdb/bbrf-init.sh | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/couchdb/bbrf-init.sh b/couchdb/bbrf-init.sh index 38925ea..ccdfccd 100755 --- a/couchdb/bbrf-init.sh +++ b/couchdb/bbrf-init.sh @@ -35,4 +35,8 @@ curl -X PUT $COUCHDB"_node/_local/_config/httpd/enable_cors" -u $AUTH -d '"true" curl -X PUT $COUCHDB"_node/_local/_config/cors/origins" -u $AUTH -d '"https://bbrf.me"' -s > /dev/null curl -X PUT $COUCHDB"_node/_local/_config/cors/credentials" -u $AUTH -d '"true"' -s > /dev/null + +curl -X PUT "$COUCHDB"_node/_local/_config/cors/headers -u $AUTH -d '"accept, authorization, content-type, origin, referer"' -s > /dev/null +curl -X PUT "$COUCHDB"_node/_local/_config/cors/methods -u $AUTH -d '"GET, PUT, POST, HEAD, DELETE"' -s > /dev/null + echo "[BBRF] Initialization complete"