pcp
[Top] [All Lists]

Re: PCP web client on different domain

To: "Frank Ch. Eigler" <fche@xxxxxxxxxx>
Subject: Re: PCP web client on different domain
From: Martin Spier <mspier@xxxxxxxxxxx>
Date: Mon, 9 Jun 2014 11:31:58 -0700
Cc: Nathan Scott <nathans@xxxxxxxxxx>, Amer Ather <aather@xxxxxxxxxxx>, pcp@xxxxxxxxxxx, Martin Spier <spiermar@xxxxxxxxx>, Coburn Watson <cwatson@xxxxxxxxxxx>
Delivered-to: pcp@xxxxxxxxxxx
Dkim-signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=netflix.com; s=google; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :cc:content-type; bh=TsL+mfCXdYFuKQPF6/gQKTMQK4V4W6gjzEPGgpSswdM=; b=Dg2RhxpE12D1A2hqC37zl15piCeK/v31aF2SV+L1zOwvKrATVN3ND/ZO3dtHZbSOCi HqN7gXg9nuz3ZURb9KrxCeirHmN27ETekZyjlHhhnhsF4RYnrjE4/G8N1Jc9EGuC+6I0 cdOoMsW66OV0Y910tSodAnwc8lcuLG7jhIS5I=
In-reply-to: <y0m61ka11e9.fsf@xxxxxxxx>
References: <CAM1aq-F=7BgLJFTNSo4nmzf7Lcjv-7mLDaStfxRaZrD-7WuF8Q@xxxxxxxxxxxxxx> <1717887824.20744079.1401960303984.JavaMail.zimbra@xxxxxxxxxx> <20140605115447.GC11474@xxxxxxxxxx> <1295610433.21793898.1402006255252.JavaMail.zimbra@xxxxxxxxxx> <y0m61ka11e9.fsf@xxxxxxxx>
Just finished testing the UI I'm developing with the patched version Nathan sent us last week and it's working well. We just included the ACAO header and that was all. As I mentioned to fche on IRC, for the foreseeable future, that's the only header I see us requiring, so both configurable and static solutions should work just fine.


On Mon, Jun 9, 2014 at 9:41 AM, Frank Ch. Eigler <fche@xxxxxxxxxx> wrote:

nathans wrote:

> [...]
>> aather, mspier, et al., I'd like to hear your opinions
>
> (yes, please do chime in guys - certainly I could be convinced hard-coding
> is OK for pmwebd, I'm not tied to this approach if noone else wants it)
>
>> about whether the extra configurability is needed or helpful, or whether
>> simply hard-coding "A-C-A-O: *" is sufficient for forseeable purposes.

mspier advised on IRC that in his opinion, it was sufficient.


> Other than dealing with the potential problems (like * not being the
> only valid value for Access-Control-Allow-Origin, or people not
> wanting that header at all, or the dazzling array of other standard
> http headers folks might want to set)

That's what the forseeability question is about. ÂSo far, the
configurability seems unnecessary.


> another potential situation where this flexibility might help would
> be the use of custom headers for a custom webapp. ÂMaybe identifying
> something about the machine that isn't available as a metric,
> perhaps helping locate it within a data centre - that kind of thing.

I haven't ever heard of such site data being provided as webapp ajax
response headers, or indeed webapps pulling in response headers for
such metadata. Âpmwebd already has a basic file server, where fixed
information can be easily provided, with more structure and
capability.


- FChE

<Prev in Thread] Current Thread [Next in Thread>