It is impossible to access the calendarserver from javascript due to cross domain security limitations in modern browsers. To allow cross domain queries from javascript based caldav/carddav clients it is important to add several new headers to each response (see http://www.w3.org/TR/cors/).
For example, to use my CardDavMATE client (fully javascript based) the user must patch the calendarserver (see the included patch).
The text was updated successfully, but these errors were encountered:
I'm not sure the web2/server.py is appropriate… I assume these values aren't correct for all servers, or you wouldn't need these headers in the first place. Certainly the allowed methods list needs to correspond to what's allowed on the resource being requested.
I'm not sure the web2/server.py is appropriate… I assume these values aren't correct for all servers, or you wouldn't need these headers in the first place. Certainly the allowed methods list needs to correspond to what's allowed on the resource being requested.
jan.mate@… originally submitted this as ticket:468
It is impossible to access the calendarserver from javascript due to cross domain security limitations in modern browsers. To allow cross domain queries from javascript based caldav/carddav clients it is important to add several new headers to each response (see http://www.w3.org/TR/cors/).
For example, to use my CardDavMATE client (fully javascript based) the user must patch the calendarserver (see the included patch).
The text was updated successfully, but these errors were encountered: