【问题标题】:How to capture client url in apigee?如何在 apigee 中捕获客户端 URL?
【发布时间】:2020-06-09 13:34:31
【问题描述】:

如何在 apigee 中捕获客户端 url

我在“代理端点”的“PreFlow”中使用 javascript

context.setVariable("request.header.host",context.getVariable('request.header.host')) context.setVariable("request.header.origin",context.getVariable('request.header.origin'))

“request.header.origin”和“request.header.host”我没有得到任何值返回,我得到了代理端点

【问题讨论】:

    标签: api cross-domain apigee


    【解决方案1】:

    您想获取客户端发送的 url 对吗?

    如果我理解正确,请尝试以下代码:

    代理端点中,您可以使用context.getVariable("proxy.url");

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 2018-09-03
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2013-11-29
      相关资源
      最近更新 更多