pcp
[Top] [All Lists]

Re: [pcp] PCP web client on different domain

To: "Frank Ch. Eigler" <fche@xxxxxxxxxx>
Subject: Re: [pcp] PCP web client on different domain
From: Amer Ather <aather@xxxxxxxxxxx>
Date: Thu, 5 Jun 2014 08:25:39 -0700
Cc: Martin Spier <mspier@xxxxxxxxxxx>, pcp@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=KuElFaCsRKgHLj2NPdLDOdlvglpf4msF44uh+ZQsR3k=; b=rh8JWG/6vTapqq3hdFECr1P40nCCIG73SQmYpIWElpRzLTz11n3v0cR+5nYViY2Ufc DU6tzIyir+40c2mrjYI2n5wMVbw2SMKe3N5gA20D01M68/huLKQpmrtj93k5hg5a6G4Z 1cDUmAZaHxIXW7b47Ehx8WGbosqx3pHEyPqh0=
In-reply-to: <20140605115447.GC11474@xxxxxxxxxx>
References: <CAM1aq-F=7BgLJFTNSo4nmzf7Lcjv-7mLDaStfxRaZrD-7WuF8Q@xxxxxxxxxxxxxx> <1717887824.20744079.1401960303984.JavaMail.zimbra@xxxxxxxxxx> <20140605115447.GC11474@xxxxxxxxxx>
Hi Frank and Nathan,

Thanks for quick turn around. I will use the latest pcp build:


and test it. I will let Martin comment on whether such features should be configurable or hard coded. Do we know how other applications serving web clients are setting it? Any standard?

Amer.



On Thu, Jun 5, 2014 at 4:54 AM, Frank Ch. Eigler <fche@xxxxxxxxxx> wrote:
Hi -

On Thu, Jun 05, 2014 at 05:25:03AM -0400, Nathan Scott wrote:
> [...]
> ----- Original Message -----
> > Our client application is running on a different instance than the one
> > serving PCP. That means for all _javascript_ API requests to PCP server we
> > need to include an extra header in order for our browser client to accept
> > the response:
> >
> > Access-Control-Allow-Origin: *
> >
> > This is fairly standard on any API that is meant to be used by external
> > clients.
> > [...]

Thanks Nathan for prototyping something far more flexible than called for
this by request. Âaather, mspier, et al., I'd like to hear your opinions
about whether the extra configurability is needed or helpful, or whether
simply hard-coding "A-C-A-O: *" is sufficient for forseeable purposes.

(For example, the caching pragmas in nathans' sample may be positively
counterproductive: pmwebd may be in a position to know that some data
(metadata, help texts, historical archived metrics) are not going to
change, and therefore would prefer to encourage clients to cache those
but not live data.)

- FChE



--
Thanks,

Amer Ather
Cloud Performance Engineering
<Prev in Thread] Current Thread [Next in Thread>