diff options
-rw-r--r-- | modules/private/websites/tools/tools/shaarli.nix | 5 |
1 files changed, 5 insertions, 0 deletions
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 { | |||
22 | Alias /Shaarli "${root}" | 22 | Alias /Shaarli "${root}" |
23 | 23 | ||
24 | Include /var/secrets/webapps/tools-shaarli | 24 | Include /var/secrets/webapps/tools-shaarli |
25 | <Location /Shaarli> | ||
26 | Header set Access-Control-Allow-Origin "*" | ||
27 | Header set Access-Control-Allow-Methods "GET, POST, PUT, DELETE, OPTIONS" | ||
28 | Header set Access-Control-Allow-Headers "Origin, X-Requested-With, Content-Type, Accept, Authorization, Client-Security-Token, Accept-Encoding" | ||
29 | </Location> | ||
25 | <Directory "${root}"> | 30 | <Directory "${root}"> |
26 | DirectoryIndex index.php index.htm index.html | 31 | DirectoryIndex index.php index.htm index.html |
27 | Options Indexes FollowSymLinks MultiViews Includes | 32 | Options Indexes FollowSymLinks MultiViews Includes |