Return-Path: X-Original-To: apmail-couchdb-dev-archive@www.apache.org Delivered-To: apmail-couchdb-dev-archive@www.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id 4277210896 for ; Tue, 11 Mar 2014 01:11:49 +0000 (UTC) Received: (qmail 46520 invoked by uid 500); 11 Mar 2014 01:11:45 -0000 Delivered-To: apmail-couchdb-dev-archive@couchdb.apache.org Received: (qmail 46462 invoked by uid 500); 11 Mar 2014 01:11:45 -0000 Mailing-List: contact dev-help@couchdb.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@couchdb.apache.org Delivered-To: mailing list dev@couchdb.apache.org Received: (qmail 46451 invoked by uid 99); 11 Mar 2014 01:11:45 -0000 Received: from arcas.apache.org (HELO arcas.apache.org) (140.211.11.28) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 11 Mar 2014 01:11:45 +0000 Date: Tue, 11 Mar 2014 01:11:45 +0000 (UTC) From: "j ermouth (JIRA)" To: dev@couchdb.apache.org Message-ID: In-Reply-To: References: Subject: [jira] [Commented] (COUCHDB-2027) CORS should not require authentication on preflight OPTIONS request MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 [ https://issues.apache.org/jira/browse/COUCHDB-2027?page=3Dcom.atlassi= an.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=3D13= 929827#comment-13929827 ]=20 j ermouth commented on COUCHDB-2027: ------------------------------------ To reproduce in console: var xhr =3D new XMLHttpRequest(); xhr.open("GET", "http://cors.enabled.crossorigin.couchdb:5984/dbname/"); xhr.setRequestHeader("Authorization","Basic "+btoa("username:password")); xhr.send(); XHR fails in Moz and Webkit with 405 error. It happens cause browser tries = to make OPTIONS request before making GET. OPTIONS is not allowed by CouchD= B regardless of [cors] /methods in local.ini. > CORS should not require authentication on preflight OPTIONS request > ------------------------------------------------------------------- > > Key: COUCHDB-2027 > URL: https://issues.apache.org/jira/browse/COUCHDB-2027 > Project: CouchDB > Issue Type: Bug > Components: HTTP Interface > Reporter: St=C3=A9phane Alnet > > The discussion in https://github.com/daleharvey/pouchdb/issues/1003 point= s to an issue whereby CouchDB is requiring authentication for preflight OPT= IONS message where it shouldn't. -- This message was sent by Atlassian JIRA (v6.2#6252)