Return-Path: Delivered-To: apmail-couchdb-user-archive@www.apache.org Received: (qmail 21343 invoked from network); 29 Dec 2010 16:11:01 -0000 Received: from unknown (HELO mail.apache.org) (140.211.11.3) by 140.211.11.9 with SMTP; 29 Dec 2010 16:11:01 -0000 Received: (qmail 4450 invoked by uid 500); 29 Dec 2010 16:10:59 -0000 Delivered-To: apmail-couchdb-user-archive@couchdb.apache.org Received: (qmail 4297 invoked by uid 500); 29 Dec 2010 16:10:59 -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 4289 invoked by uid 99); 29 Dec 2010 16:10:58 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 29 Dec 2010 16:10:58 +0000 X-ASF-Spam-Status: No, hits=-0.7 required=10.0 tests=FREEMAIL_FROM,RCVD_IN_DNSWL_LOW,RFC_ABUSE_POST,SPF_PASS,T_TO_NO_BRKTS_FREEMAIL,WEIRD_PORT X-Spam-Check-By: apache.org Received-SPF: pass (nike.apache.org: domain of zachary.zolton@gmail.com designates 74.125.82.180 as permitted sender) Received: from [74.125.82.180] (HELO mail-wy0-f180.google.com) (74.125.82.180) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 29 Dec 2010 16:10:51 +0000 Received: by wyb28 with SMTP id 28so11588872wyb.11 for ; Wed, 29 Dec 2010 08:10:31 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:mime-version:received:in-reply-to :references:from:date:message-id:subject:to:content-type :content-transfer-encoding; bh=rnFzsOslg7Y+2+CldEypJenbsu9FeIQ6BnmvzYD87yg=; b=pryjPD/ExgALmiEwnsiabQ1ikEfFOOFvRgF2fuyNngiJDW1LNn3g6UImmYpCadB8AT 2vtNLJm+sATldWJbX+Rx4G94QCfRyi1HoQilZ6RjJAiKerFABPJupaqGxXdVKAAnoCik 4cgLatS/hqqEddaAbVfekjvFoC9XT3Tdt11IY= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:in-reply-to:references:from:date:message-id:subject:to :content-type:content-transfer-encoding; b=vSxIFJQKl7iwaJkScUaZNmKz0tFNMaX6JFgAEKiFWe2sSxOkZXJ5DlQyE/In4pgsQ5 J3hEf1j7X6x1KG/Q+vI0vXmBHCYquJr8PRlCM8dZaeVHYecwkFnb8qUsCvvFAvemtlKV h7gnKOsGqxETyGEx4FyW4RxWTABWHxN5mKH80= Received: by 10.227.159.131 with SMTP id j3mr8781010wbx.205.1293639030934; Wed, 29 Dec 2010 08:10:30 -0800 (PST) MIME-Version: 1.0 Received: by 10.227.20.21 with HTTP; Wed, 29 Dec 2010 08:10:10 -0800 (PST) In-Reply-To: References: From: Zachary Zolton Date: Wed, 29 Dec 2010 10:10:10 -0600 Message-ID: Subject: Re: JavaScript app working with two child domain. To: user@couchdb.apache.org Content-Type: text/plain; charset=windows-1252 Content-Transfer-Encoding: quoted-printable X-Virus-Checked: Checked by ClamAV on apache.org Unless you're using the script tag's src attribute, the webpage's JavaScript cannot make requests to a different subdomain: http://stackoverflow.com/questions/2543784/javascript-same-origin-policy-ho= w-does-it-apply-to-different-subdomains =97Zach On Wed, Dec 29, 2010 at 1:35 AM, payam yousefi w= rote: > I have two databases and v-host for each one > app.lbd.com:5984 =3D /agaton/_design/lbd/_rewrite > log.lbd.com:5984 =A0=3D /log > and a JavaScript client application that needs to work with both > database and is accessible from this URL: > http://app.lbd.com:5984/home > Application sends POST requests to http://app.lbd.com:5984 and it works b= ut > when the application sends a POST request to http://log.lbd.com:5984 > It get ERROR : httpd 405 error "method_not_allowed","reason":"Only > DELETE,GET,HEAD,POST allowed" > > Two domains are sub domain of lbd.com and child domains can request > each other( it's not against same origin policy) so what's wrong? > > Thank you in advance for your help > Best Regards >