[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Inf-IT DAVcl] 404 error when authenticating (with cross-domain)


No,

the OPTIONS preflight request MUST be performed WITHOUT authentication 
(see http://www.w3.org/TR/cors/) and:

RewriteCond %{HTTP:Access-Control-Request-Method} !^$
RewriteCond %{REQUEST_METHOD} OPTIONS
RewriteRule ^(.*)$ $1 [R=200,L]

prevents DAViCal to check the username/password because [R=200,L] says:
return 200 and STOP processing the request.

So the browser will get ONLY the CORS headers (set before the RewriteRule line) and 200 (success).
This preflight request is NOT processed by DAViCal!


JM

On Jul 10, 2013, at 4:46 PM, "Julien Métairie" <ruliane@xxxxxxxxxxx> wrote:

> Thanks for your answer Ján.
> 
> Your explanation make me think that the problem comes from the "401
> Unauthorized" answer, thought it is a normal behavior since I need to
> authenticate against DAViCal. My browser should try to authenticate with
> the user/password entered I entered, which is not the case.
> 
> Julien

Attachment: smime.p7s
Description: S/MIME cryptographic signature


Follow-Ups:
Re: [Inf-IT DAVcl] 404 error when authenticating (with cross-domain)Julien Métairie <ruliane@xxxxxxxxxxx>