Re: [hybi] Concerns about Origin

"Simon Pieters" <simonp@opera.com> Mon, 22 November 2010 19:15 UTC

Return-Path: <simonp@opera.com>
X-Original-To: hybi@core3.amsl.com
Delivered-To: hybi@core3.amsl.com
Received: from localhost (localhost [127.0.0.1]) by core3.amsl.com (Postfix) with ESMTP id D0F5D3A6A2A for <hybi@core3.amsl.com>; Mon, 22 Nov 2010 11:15:06 -0800 (PST)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -6.599
X-Spam-Level:
X-Spam-Status: No, score=-6.599 tagged_above=-999 required=5 tests=[BAYES_00=-2.599, RCVD_IN_DNSWL_MED=-4]
Received: from mail.ietf.org ([64.170.98.32]) by localhost (core3.amsl.com [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id PWxbVYs+RwBH for <hybi@core3.amsl.com>; Mon, 22 Nov 2010 11:15:06 -0800 (PST)
Received: from smtp.opera.com (smtp.opera.com [213.236.208.81]) by core3.amsl.com (Postfix) with ESMTP id BFFD83A69C2 for <hybi@ietf.org>; Mon, 22 Nov 2010 11:15:05 -0800 (PST)
Received: from dhcp-190.linkoping.osa (c-51c3e455.029-286-6c6b701.cust.bredbandsbolaget.se [85.228.195.81]) (authenticated bits=0) by smtp.opera.com (8.14.3/8.14.3/Debian-5+lenny1) with ESMTP id oAMJFtH4021620 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NOT); Mon, 22 Nov 2010 19:15:56 GMT
Content-Type: text/plain; charset="utf-8"; format="flowed"; delsp="yes"
To: John Tamplin <jat@google.com>
References: <op.vmkpgllmidj3kv@simon-pieterss-macbook.local> <AANLkTi=hVXa1yFbLr-pRS25gA2F__X3bM9w08O99my6s@mail.gmail.com> <op.vmky62ixidj3kv@dhcp-190.linkoping.osa> <AANLkTi=qKiqcKPf3hcOzD5QfWvU-6ncfhMO6hwyV9sxM@mail.gmail.com>
Date: Mon, 22 Nov 2010 20:16:30 +0100
MIME-Version: 1.0
Content-Transfer-Encoding: 8bit
From: Simon Pieters <simonp@opera.com>
Message-ID: <op.vmk6hshzidj3kv@dhcp-190.linkoping.osa>
In-Reply-To: <AANLkTi=qKiqcKPf3hcOzD5QfWvU-6ncfhMO6hwyV9sxM@mail.gmail.com>
User-Agent: Opera Mail/11.00 (MacIntel)
X-Scanned-By: MIMEDefang 2.64 on 213.236.208.81
Cc: "hybi@ietf.org" <hybi@ietf.org>
Subject: Re: [hybi] Concerns about Origin
X-BeenThere: hybi@ietf.org
X-Mailman-Version: 2.1.9
Precedence: list
List-Id: Server-Initiated HTTP <hybi.ietf.org>
List-Unsubscribe: <https://www.ietf.org/mailman/listinfo/hybi>, <mailto:hybi-request@ietf.org?subject=unsubscribe>
List-Archive: <http://www.ietf.org/mail-archive/web/hybi>
List-Post: <mailto:hybi@ietf.org>
List-Help: <mailto:hybi-request@ietf.org?subject=help>
List-Subscribe: <https://www.ietf.org/mailman/listinfo/hybi>, <mailto:hybi-request@ietf.org?subject=subscribe>
X-List-Received-Date: Mon, 22 Nov 2010 19:15:06 -0000

On Mon, 22 Nov 2010 17:58:36 +0100, John Tamplin <jat@google.com> wrote:

> On Mon, Nov 22, 2010 at 11:38 AM, Simon Pieters <simonp@opera.com> wrote:
>>> APIs for server apps should have a hook to the handshake event, so
>>> that apps can participate in the handshake. Apps have an opportunity
>>> here to check Origin, set cookies, etc. per connection.
>>
>> pywebsocket allows apps to do extra checks in the handshake, but I'd  
>> like to
>> take a step further and make the origin choice a required step for the  
>> app
>> writer.
>
> I would prefer the default behavior of the server to be that the
> origin has to match exactly,

Match what?


> but that the app can override it, or when
> the app is registered with the server it gives a list of acceptable
> Origins.

-- 
Simon Pieters
Opera Software