Handle Load Errors in Nuxt with Alternate Data, Redirect, or Error Layout

John Lindquist
InstructorJohn Lindquist

Share this video with your friends

Send Tweet

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.

pirapol
pirapol
~ 4 years ago

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 ..