From: Ismaƫl Bouya Date: Wed, 29 Sep 2021 22:27:40 +0000 (+0200) Subject: Fix Shaarli rest API X-Git-Url: https://git.immae.eu/?a=commitdiff_plain;h=cb3f528990439b158780f328e2e1180528dd6855;p=perso%2FImmae%2FConfig%2FNix.git Fix Shaarli rest API --- diff --git a/modules/private/websites/tools/tools/shaarli.nix b/modules/private/websites/tools/tools/shaarli.nix index da8f734..d11f525 100644 --- a/modules/private/websites/tools/tools/shaarli.nix +++ b/modules/private/websites/tools/tools/shaarli.nix @@ -22,6 +22,11 @@ in rec { Alias /Shaarli "${root}" Include /var/secrets/webapps/tools-shaarli + + Header set Access-Control-Allow-Origin "*" + Header set Access-Control-Allow-Methods "GET, POST, PUT, DELETE, OPTIONS" + Header set Access-Control-Allow-Headers "Origin, X-Requested-With, Content-Type, Accept, Authorization, Client-Security-Token, Accept-Encoding" + DirectoryIndex index.php index.htm index.html Options Indexes FollowSymLinks MultiViews Includes