In a server-rendered application, if you attempt to load data before the page renders and the data fails to load, your application will not run unless you handle the error properly. This lesson walks you through the options of handling load errors so that your users will always have a good experience.
hi I have set the following this on my web application, i get the following error any idea thx:
XMLHttpRequest cannot load http://localhost/mysite/api/category. No 'Access-Control-Allow- ... Origin' header is present on the requested resource. Origin 'http://127.0.0.1:3000' is therefore not allowed access.
Uncauget (in promise) error: noetwork error at createError (createERROR.js .. at xmlhttpRequer.handleError ..
Dear John, I wonder why you import Axios and you don’t use the axios included in Nuxt ?