Static GitHub Issues

[1399] Get Full url path in asyncData

prev: Read files from folder
next: How including fonts in css

I have a very strange requirement. I am using asyncData method to fetch data from another microservice. But this microservice responds based on origin header. But, when I am using axios in asyncData, there is no origin header available for the microservice. For example, the headers that were sent are,

{ accept: 'application/json, text/plain, */*',
  'user-agent': 'axios/0.16.2',
  host: 'localhost:3002',
  connection: 'close' }

But ideally, I would need headers this way

{ accept: 'application/json, text/plain, */*',
  origin : 'http://example.com',
  'user-agent': 'axios/0.16.2',
  host: 'localhost:3002',
  connection: 'close' }

Is there some way of achieving this ?

<!--cmty--><!--cmty_prevent_hook--><div align="right"><sub><em>This question is available on <a href="https://nuxtjs.cmty.io">Nuxt.js</a> community (<a href="https://nuxtjs.cmty.io/nuxt/nuxt.js/issues/c1241">#c1241</a>)</em></sub></div>