Very painfull CORS error

4vrel
3
4vrel
commented 7 months ago

Version

v5.6.0

Reproduction link

https://jsfiddle.net/

Steps to reproduce

Install nuxt from the nuxt website instruction.
install axios during the setup
Then follow axios tutorial: https://axios.nuxtjs.org/usage

What is expected ?

To fetch the IP adress from the API

What is actually happening?

nuxt page: Network Error

Additional comments?

The "Network Error" page from nuxt is very frustating because it doesn't give much info.
It took me a while to figure out that it was a CORS error.
I don't understand why not everybody got this error, since I just followed the tutorial.

Also regarding this form, I don't understand what a "reproduction link" is and why is it mandatory

bug
1
Informations
Bug Report โ€ข Open
#c277 - Created 7 months ago