After some investigation, i think this is related to the Rewrite Rule in the vhost conf
RewriteEngine On RewriteRule ^/(.*)$ /server.php [L] But how am i supposed to run the server without this rule ? Le mardi 10 janvier 2017 14:53:00 UTC+1, Lionel VEST a écrit : > > Hi Evert, > > I was looking for a JAVASCRIPT Webdav Client that can communicate with my > SABREDAV server. > I just discovered your GITHUB project : > https://github.com/evert/davclient.js > > I made some tests but the server I try to connect is not on the same > domain. > The problem is that GOOGLE CHROME doesn't allow cross domain requests > (CORS). > I got this error : *"Response to preflight request doesn't pass access > control check: No 'Access-Control-Allow-Origin' header is present on the > requested resource."* > > I found that adding this line to my server.php can partially solve the > problem : > > header("Access-Control-Allow-Origin: *"); > > > But now the error is different : *"Response for preflight has invalid > HTTP status code 401"* > What does it mean ? > How can I fix this ? > > > Second question : in order to use davclient.js, I have to write the login > / password in the javascript source code. > This isn't very secure because the user can read the code. > Is there a solution to avoid this ? > > > Best regards > -- You received this message because you are subscribed to the Google Groups "SabreDAV Discussion" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. To view this discussion on the web visit https://groups.google.com/d/msgid/sabredav-discuss/1a639750-396e-454d-8497-586a86bcb319%40googlegroups.com. For more options, visit https://groups.google.com/d/optout.
