[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Inf-IT DAVcl] 404 error when using radicale and CalDavZAP together [SOLVED]
- Subject: [Inf-IT DAVcl] 404 error when using radicale and CalDavZAP together [SOLVED]
- From: Ploc <pub2013@xxxxxxxxxxxx>
- Reply-to: davclients@xxxxxxxxxx
- Date: Sat, 28 Dec 2013 20:03:30 +0100
- To: radicale@xxxxxxxxxxxxx, davclients@xxxxxxxxxx
Hello everyone,If you're trying to use CalDavZAP on the (web) client side, and radicale on the server side, you might have encountered a 404 error on CalDavZAP web console.
I've been stuck on this problem an entire evening and I finally found the error.
Don't forget to enable CORS (cross-origin resource sharing : http://en.wikipedia.org/wiki/Cross-origin_resource_sharing ) on the radicale configuration so that CalDavZAP can access the radicale resources even if they are not available on the same domain.
This is simply done by adding the following configuration at the end of the radicale configuration file :
extract from /etc/radicale/config : [...] # Additional HTTP headers [headers] Access-Control-Allow-Origin = *Access-Control-Allow-Methods = GET, POST, OPTIONS, PROPFIND, PROPPATCH, REPORT, PUT, MOVE, DELETE, LOCK, UNLOCK, HEAD, MKCALENDAR, MKCOL Access-Control-Allow-Headers = User-Agent, Authorization, Content-type, Depth, If-match, If-None-Match, Lock-Token, Timeout, Destination, Overwrite, X-client, X-Requested-With
Access-Control-Expose-Headers = Etag [...] You can also restrict "*" to a more resrtictive list of domains. Hope this helps...(this message does not intend to start a discussion, but is only there for list-archiving purproses)