Return-Path: X-Original-To: apmail-couchdb-user-archive@www.apache.org Delivered-To: apmail-couchdb-user-archive@www.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id 1235FC3B0 for ; Sun, 23 Jun 2013 17:51:59 +0000 (UTC) Received: (qmail 30787 invoked by uid 500); 23 Jun 2013 17:51:56 -0000 Delivered-To: apmail-couchdb-user-archive@couchdb.apache.org Received: (qmail 30693 invoked by uid 500); 23 Jun 2013 17:51:50 -0000 Mailing-List: contact user-help@couchdb.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: user@couchdb.apache.org Delivered-To: mailing list user@couchdb.apache.org Received: (qmail 30677 invoked by uid 99); 23 Jun 2013 17:51:48 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Sun, 23 Jun 2013 17:51:48 +0000 X-ASF-Spam-Status: No, hits=-0.7 required=5.0 tests=RCVD_IN_DNSWL_LOW,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (nike.apache.org: domain of wordituk@gmail.com designates 209.85.215.42 as permitted sender) Received: from [209.85.215.42] (HELO mail-la0-f42.google.com) (209.85.215.42) by apache.org (qpsmtpd/0.29) with ESMTP; Sun, 23 Jun 2013 17:51:42 +0000 Received: by mail-la0-f42.google.com with SMTP id eb20so9380347lab.1 for ; Sun, 23 Jun 2013 10:51:22 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:from:date:message-id:subject:to:content-type; bh=rI5zdwwWyA8JYZs+OMmwiaNIlrrNf4nA5kSRQKPhy0k=; b=ZvFmBhWeQcLQ+2ppii5a3+bEPwP40asLZO7Jh4aW1JrMS8QPAU6eexgs7qn7QE813n zgsJ/PQCUgFZzIb4RB5D8Xwae7poVR8OEPI+groOTyo3uz8Hsfqs25VMSWje8JFj7oAH BVueFHIX6MvmZps19duYGBwLCsFbKv0mb3P7o4uRHEyWgJhy9otT6kQGG2QjI6WSh9hF m1IkyOxSyFyG4ns7gV0bCtD1vllX/QAgnWuCf4nlJxWPlH4PrvViabqeoAnBqG+uUL+M eklVl0CdCp7+iwKT22O3z0FoJRevw5RYtGA9OXQy1WAnvLF7QaQJoUn1Pnryi4N7BGvk 5O/A== X-Received: by 10.112.4.164 with SMTP id l4mr2818248lbl.94.1372009882190; Sun, 23 Jun 2013 10:51:22 -0700 (PDT) MIME-Version: 1.0 Received: by 10.112.145.6 with HTTP; Sun, 23 Jun 2013 10:50:42 -0700 (PDT) From: Wordit Date: Sun, 23 Jun 2013 19:50:42 +0200 Message-ID: Subject: 401 error with vhost on cloudant To: user@couchdb.apache.org Content-Type: text/plain; charset=UTF-8 X-Virus-Checked: Checked by ClamAV on apache.org I have a vhost set up on Cloudant working fine and pointing to mydomain.com/index.html. The problem is getting data from a protected database via JSONP. I get a 401 and no cross-domain error, *despite* the user being authenticated. A world-readable database is accessible fine, via JSONP. Accessing from the subdomain.cloudant.com works fine. So maybe cross-domain is the problem despite JSONP? I'm confused, can anyone help? Basically, I need to access a document at http://subdomain.cloudant.com/db/doc from http://example.com. Maybe somebody knows a rewrite rule so I can access the doc on my custom domain, e.g. http://mydomain.com/db/doc , instead of http://subdomain.cloudant.com/db/doc ? Many Thanks, Marcus