title: How can i get the full url in a Nuxt plugin?
body: <p>I'm having trouble accessing the url in my nuxt js plugin that has all. In short: there is a part in the url that shows me what country people are visiting from and that country should be used in the api calls.</p>
  <p><code>window.location</code>
  doesn't work because it's SSR and window isn't available there.</p>
  <p><code>req.headers.host</code> doesn't work because nuxt generate has been run on the staging/production</p>
  <p>Edit: The route object won't give me any info on the domain. Only parts after that. For example with <a href="http://www.test.nl/about" rel="nofollow noreferrer">www.test.nl/about</a> it will not return <a href="http://www.test.nl" rel="nofollow noreferrer">www.test.nl</a> anywhere</p>
  <p>Is there a way i could get the full url in this scenario?</p>