Apigee未从客户端应用程序的请求标头接收值

时间:2020-10-09 07:46:20

标签: rest axios apigee

我有一个使用axios将请求发送到ApiGee服务器的Vue.js应用程序。

这是我用来向APIgee发送请求的代码。

    const headers = {
      'X-API-Key': 'randomKey123123'
    }

    return axios({
      method: 'get',
      url: url,
      headers: headers
    }).then(response => {
      console.log(response)
    })

由于我是从客户端浏览器完成请求的,因此我可以首先看到来自ApiGee的OPTIONS请求。 我还可以看到X-API-Key标头键,但是缺少该值。

0 个答案:

没有答案