mesos-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From haosdent <haosd...@gmail.com>
Subject Re: [WEBUI] Update WebUI to use new operator v1 API - javascript cross domain request issue
Date Thu, 21 Jul 2016 02:08:04 GMT
I think have to resolve it by adding `Access-Control-Allow-xxx` headers in
agent response now.
A long term solution may be proxy agent request via master, so the cross
domain request issue does not exist.

On Wed, Jul 20, 2016 at 7:45 AM, Zhou Z Xing <xingzhou@cn.ibm.com> wrote:

>
> Dear developers,
>
> We are planning to update WebUI to use our new operator V1 API, please find
> the details in MESOS-5735.
>
> WebUI needs to request data from different sources, e.g. master and
> different agents, and we encountered a javascript cross domain request
> issue. Now, WebUI uses jsonp and 'GET' request to collect all the
> information from back-end, like state or metrics information. For new
> operator V1 API, we only support 'POST' request for now, and jsonp seems
> does not support 'POST' request. There are some other solutions to help
> resolve cross domain visit issue on 'POST' request, like CORS or iframe,
> but we are not sure whether they can be used in our case.
>
> If you have any ideas or suggestions on this issue, please let use know,
> thanks for your attentions and helps!
>
> Thanks & Best Wishes,
>
> Tom Xing(邢舟)
> Emerging Technology Institute, IBM China Software Development Lab
> ----------------------
> IBM China Software Development Laboratory (CSDL)
> Notes ID:Zhou Z Xing/China/IBM
> Phone   :86-10-82450442
> e-Mail  :xingzhou@cn.ibm.com
> Address :Building No.28, ZhongGuanCun Software Park, No.8 Dong Bei Wang
> West Road, Haidian District, Beijing, P.R.China 100193
> 地址    :中国北京市海淀区东北旺西路8号 中关村软件园28号楼 100193
>



-- 
Best Regards,
Haosdent Huang

Mime
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message