Re: [Inf-IT DAVcl] does infcloud support header "Access-Control-Allow-Origin <a-domain>"?
- Subject: Re: [Inf-IT DAVcl] does infcloud support header "Access-Control-Allow-Origin <a-domain>"?
- From: Julien Métairie <ruliane@xxxxxxxxxxx>
- Reply-to: davclients@xxxxxxxxxx
- Date: Thu, 1 Mar 2018 08:00:40 +0100
- To: davclients@xxxxxxxxxx
I think it should work with or without trailing slash.
The Wikipedia page should be enough to understand how CORS works.
Nevertheless, I notice that examples don't have any trailing slash...
-------- Message original --------
Sujet : Re: [Inf-IT DAVcl] does infcloud support header
De : Ploc <pub2018@xxxxxxxxxxxx>
Pour : davclients@xxxxxxxxxx
Date : 01/03/2018 00:15
Thanks for your answer Julien.
I think that's what I did :
I set "https://cal.example.com/" with a trailing slash.
Then, it should work?
Le 28/02/2018 à 09:07, Julien Métairie a écrit :
As far as I know, you need to fill Access-Control-Allow-Origin with a
full URL, including the protocol.
Le 28/02/2018 à 00:04, Ploc a écrit :
Does infcloud support header "Access-Control-Allow-Origin <a-domain>"?
I tried to configure my caldav server with "Access-Control-Allow-Origin"
header set to <a-domain>", but infcloud seems to be unable to connect
the caldav server, reporting the following error in the browser's
"Error: [netCheckAndCreateConfiguration: 'PROPFIND
https://<a-domain>/dav/'] code: '0' status: 'error' - see
https://www.inf-it.com/infcloud/readme.txt (cross-domain setup)"
When I set this "Access-Control-Allow-Origin" header to "*", it works.
I find it more secure to be able to set this header.
Can you tell me how is infcloud supposed to work with this header?