Static GitHub Issues

[1999] UnhandlesPromiseRejectionWarning - Request failed status 403

prev: how to insert <script> tag before </body>?
next: [Request] Ability to cancel navigation from asyncData without error page

Hello,

Today I've uploaded my nuxt.js app to production on a live host. Let's call it sub.domain.com . The back-end is made with Laravel on domain.com. All api requests go to domain.com/api/v2/... .

Now everything works fine on my local PC, even if I use domain.com for the api requests instead of my local homestead.app environment. But whenever I run the server on my live server, I receive a Request failed with status code 403 error - UnhandlesPromiseRejectionWarning. This happens on first load when asyncData is retrieving data from the api. If I first visit a page however that doen't have asyncData, I can move through the whole website without problems. It's only the first load that gives this problem. What could cause this, or how can I find out the error that Laravel is giving me about the 403? I've thought I could grab it with a try catch error, but that shows me the same error that I see on the nuxt error page, which doesn't give any info.

<!--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/c1774">#c1774</a>)</em></sub></div>