UnhandlesPromiseRejectionWarning - Request failed status 403
[issue link]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.