<div dir="ltr"><div>How to set  document root to dcyrus httpd?   <br>Only put<br><br>httpdocroot: /var/lib/cyrus/htdocs ?<br></div><br>in imapd.conf  or is necessary to configure another option ?<br><div><br></div><div><br><br></div></div><div class="gmail_extra"><br><div class="gmail_quote">On Wed, Apr 29, 2015 at 8:51 AM, Ken Murchison <span dir="ltr">&lt;<a 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"><span class="">
    <div>On 04/28/2015 11:27 PM, Lucas Zinato
      Carraro wrote:<br>
    </div>
    <blockquote type="cite">
      <div dir="ltr">
        <div>caldavzap  is in another server.</div>
      </div>
    </blockquote>
    <br></span>
    Why not just have Cyrus HTTP serve up CalDAVZAP?  This will avoid
    the cross-origin requests the JavasScript is complaining about.<span class=""><br>
    <br>
    <br>
    <blockquote 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 href="http://mailserver.com:8088/dav/principals/user/" target="_blank">http://mailserver.com:8088/dav/principals/user/</a>.
          No &#39;Access-Control-Allow-Origin&#39; header is present on the
          requested resource. Origin &#39;<a href="http://webserver.com" target="_blank">http://webserver.com</a>&#39; 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></span>
    Try setting the httpallowcors option in imap.conf.  This should
    enable the cross-origin headers,<div><div class="h5"><br>
    <br>
    <br>
    <br>
    <blockquote 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 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>
                  <div>On 04/17/2015 10:17 AM, Lucas Zinato Carraro
                    wrote:<br>
                  </div>
                  <blockquote type="cite">
                    <div dir="ltr">
                      <div>  I&#39;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 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=&quot;httpd&quot;  listen=&quot;8088&quot;
                        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: &#39;<a href="http://mail.icict.fiocruz.br:8088/dav/principals/user/" target="_blank">http://myserver.com:8088/dav/principals/user/</a>&#39;,

                        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=&#39;calendar-home-set&#39;;</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 &#39;htdocs&#39; directory?  <br>
              Are they readable by the Cyrus user?<br>
              Do you have a trailing &#39;/&#39; in the URL when you try to
              access CalDAVZap (e.g. <a 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><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 cols="72">-- 
Kenneth Murchison
Principal Systems Software Engineer
Carnegie Mellon University
</pre>
  </div></div></div>

</blockquote></div><br></div>