<html>
  <head>
    <meta content="text/html; charset=UTF-8" http-equiv="Content-Type">
  </head>
  <body bgcolor="#FFFFFF" text="#000000">
    <div class="moz-cite-prefix">On 04/28/2015 11:27 PM, Lucas Zinato
      Carraro wrote:<br>
    </div>
    <blockquote
cite="mid:CAAJ87eie=JOZp-mO1767uYaOK4zcXPf53dJUfL=4_KHF0odSmA@mail.gmail.com"
      type="cite">
      <div dir="ltr">
        <div>caldavzap  is in another server.</div>
      </div>
    </blockquote>
    <br>
    Why not just have Cyrus HTTP serve up CalDAVZAP?  This will avoid
    the cross-origin requests the JavasScript is complaining about.<br>
    <br>
    <br>
    <blockquote
cite="mid:CAAJ87eie=JOZp-mO1767uYaOK4zcXPf53dJUfL=4_KHF0odSmA@mail.gmail.com"
      type="cite">
      <div dir="ltr">
        <div><br>
        </div>
        <div>----</div>
        <div><br>
        </div>
        <div>I debug more and find this log in JavaScript console.</div>
        <div><br>
        </div>
        <div>XMLHttpRequest cannot load <a moz-do-not-send="true"
            href="http://mailserver.com:8088/dav/principals/user/">http://mailserver.com:8088/dav/principals/user/</a>.
          No 'Access-Control-Allow-Origin' header is present on the
          requested resource. Origin '<a moz-do-not-send="true"
            href="http://webserver.com">http://webserver.com</a>' is
          therefore not allowed access.<br>
        </div>
        <div><br>
        </div>
        <div>---</div>
        <div><br>
        </div>
        <div>Anyway to put this specific header  in cyrus httpd ?</div>
      </div>
    </blockquote>
    <br>
    Try setting the httpallowcors option in imap.conf.  This should
    enable the cross-origin headers,<br>
    <br>
    <br>
    <br>
    <blockquote
cite="mid:CAAJ87eie=JOZp-mO1767uYaOK4zcXPf53dJUfL=4_KHF0odSmA@mail.gmail.com"
      type="cite">
      <div dir="ltr">
        <div><br>
        </div>
      </div>
      <div class="gmail_extra"><br>
        <div class="gmail_quote">On Mon, Apr 27, 2015 at 8:25 AM, Ken
          Murchison <span dir="ltr">&lt;<a moz-do-not-send="true"
              href="mailto:murch@andrew.cmu.edu" target="_blank">murch@andrew.cmu.edu</a>&gt;</span>
          wrote:<br>
          <blockquote class="gmail_quote" style="margin:0 0 0
            .8ex;border-left:1px #ccc solid;padding-left:1ex">
            <div bgcolor="#FFFFFF" text="#000000">
              <div>
                <div class="h5">
                  <div>On 04/17/2015 10:17 AM, Lucas Zinato Carraro
                    wrote:<br>
                  </div>
                  <blockquote type="cite">
                    <div dir="ltr">
                      <div>  I'm testing Cyrus Caldav ( 2.4.17+beta9 )
                         with several clients iCal, Lightning,
                        AgendaDAV, Evolution .</div>
                      <div><br>
                      </div>
                      <div>Unfortunately, I could not configure  with
                        the CalDavZAP 0.12.1</div>
                      <div><br>
                      </div>
                      <div>I follow the procedure to 2.5.0 ( <a
                          moz-do-not-send="true"
                          href="http://cyrusimap.org/docs/cyrus-imapd/2.5.0/install-http.php"
                          target="_blank">http://cyrusimap.org/docs/cyrus-imapd/2.5.0/install-http.php</a>)</div>
                      <div><br>
                      </div>
                      <div>---</div>
                      <div>In cyrus.conf</div>
                      <div><br>
                      </div>
                      <div>SERVICES {</div>
                      <div><br>
                      </div>
                      <div> ..........</div>
                      <div> http            cmd="httpd"  listen="8088"
                        prefork=0 maxchild=400<br>
                      </div>
                      <div> .........</div>
                      <div>}</div>
                      <div><br>
                      </div>
                      <div>---</div>
                      <div><br>
                      </div>
                      <div>In caldav/config.js</div>
                      <div><br>
                      </div>
                      <div>var globalNetworkCheckSettings={href: '<a
                          moz-do-not-send="true"
                          href="http://mail.icict.fiocruz.br:8088/dav/principals/user/"
                          target="_blank">http://myserver.com:8088/dav/principals/user/</a>',

                        hrefLabel: null, additionalResources: [],
                        forceReadOnly: null, settingsAccount: true,
                        timeOut: 90000, lockTimeOut: 10000, delegation:
                        true, backgroundCalendars: [], ignoreAlarms:
                        false}<br>
                      </div>
                      <div><br>
                      </div>
                      <div>....</div>
                      <div>
                        <div>var globalSettingsType='calendar-home-set';</div>
                      </div>
                      <div>....</div>
                      <div><br>
                      </div>
                      <div>Any suggestion ?</div>
                      <br>
                    </div>
                  </blockquote>
                  <br>
                </div>
              </div>
              Have you placed all of the CalDAVZap files in a location
              within your Cyrus 'htdocs' directory?  <br>
              Are they readable by the Cyrus user?<br>
              Do you have a trailing '/' in the URL when you try to
              access CalDAVZap (e.g. <a moz-do-not-send="true"
                href="http://myserver.com:8088/caldavzap/"
                target="_blank">http://myserver.com:8088/caldavzap/</a>)
              ?<br>
              Are you seeing any kind of errors in syslog?  <br>
              Have you enabled any kind of logging in your browser?<span
                class="HOEnZb"><font color="#888888"><br>
                  <pre cols="72">-- 
Kenneth Murchison
Principal Systems Software Engineer
Carnegie Mellon University
</pre>
                </font></span></div>
          </blockquote>
        </div>
        <br>
      </div>
    </blockquote>
    <br>
    <br>
    <pre class="moz-signature" cols="72">-- 
Kenneth Murchison
Principal Systems Software Engineer
Carnegie Mellon University
</pre>
  </body>
</html>