aboutsummaryrefslogtreecommitdiff
path: root/radicale_infcloud/web/misc/config_davical.txt
diff options
context:
space:
mode:
authorUnrud <unrud@openaliasbox.org>2017-06-04 17:16:11 +0200
committerUnrud <unrud@openaliasbox.org>2017-06-04 17:16:36 +0200
commit10eef51a0f086ad148928ba965c330599b4765cb (patch)
treed0283e55f1b4e66c49bf17461b5fee211b78768a /radicale_infcloud/web/misc/config_davical.txt
parentUpdate license (diff)
downloadradicaleinfcloud-10eef51a0f086ad148928ba965c330599b4765cb.tar.gz
radicaleinfcloud-10eef51a0f086ad148928ba965c330599b4765cb.tar.bz2
radicaleinfcloud-10eef51a0f086ad148928ba965c330599b4765cb.zip
Update package for new web plugin interface
Diffstat (limited to 'radicale_infcloud/web/misc/config_davical.txt')
-rw-r--r--radicale_infcloud/web/misc/config_davical.txt24
1 files changed, 24 insertions, 0 deletions
diff --git a/radicale_infcloud/web/misc/config_davical.txt b/radicale_infcloud/web/misc/config_davical.txt
new file mode 100644
index 0000000..e88672b
--- /dev/null
+++ b/radicale_infcloud/web/misc/config_davical.txt
@@ -0,0 +1,24 @@
+ RewriteEngine On
+ <IfModule mod_headers.c>
+ Header unset Access-Control-Allow-Origin
+ Header unset Access-Control-Allow-Methods
+ Header unset Access-Control-Allow-Headers
+ Header unset Access-Control-Allow-Credentials
+ Header unset Access-Control-Expose-Headers
+
+ # If your setup is working and complete you can replace the "*" with CardDavMATE instalation
+ # origin (protocol/host/port) - see the examples below (for multiple origins use multiple headers)
+ #Header always set Access-Control-Allow-Origin "http://www.server.com"
+ #Header always set Access-Control-Allow-Origin "https://www.server.com"
+ #Header always set Access-Control-Allow-Origin "https://www.server.com:8080"
+
+ Header always set Access-Control-Allow-Origin "*"
+ Header always set Access-Control-Allow-Methods "GET,POST,OPTIONS,PROPFIND,PROPPATCH,REPORT,PUT,MOVE,DELETE,LOCK,UNLOCK"
+ Header always set Access-Control-Allow-Headers "User-Agent,Authorization,Content-type,Depth,If-match,If-None-Match,Lock-Token,Timeout,Destination,Overwrite,Prefer,X-client,X-Requested-With"
+ Header always set Access-Control-Allow-Credentials false
+ Header always set Access-Control-Expose-Headers "Etag,Preference-Applied"
+
+ RewriteCond %{HTTP:Access-Control-Request-Method} !^$
+ RewriteCond %{REQUEST_METHOD} OPTIONS
+ RewriteRule ^(.*)$ $1 [R=200,L]
+ </IfModule>
bgstack15