0

CORS error

I cant solve the issue for the request to json file Front-end only!! https://github.com/Mkhaleddd/coursera_course

30th Jul 2022, 1:53 PM
Mariam Khaled
7 Réponses
0
Add a cros middleware into the backed server
30th Jul 2022, 1:56 PM
zexu knub
zexu knub - avatar
0
Can you please elaborate more specifically?
30th Jul 2022, 1:59 PM
Mariam Khaled
0
Mariam Khaled Are you consuming the external API or you have created the server on your own?
30th Jul 2022, 2:34 PM
zexu knub
zexu knub - avatar
0
I think external (first time using this)
30th Jul 2022, 2:47 PM
Mariam Khaled
0
Hey can anyone tell me why my javascript code is not running in VS CODE.... Although nodejs is installed.... But showing module error found
1st Aug 2022, 3:54 AM
Rahul
0
Mariam Khaled Try adding no cors as a mode with your API url. fetch(url, { mode: 'no-cors'})
1st Aug 2022, 3:59 AM
zexu knub
zexu knub - avatar
0
Rahul show your code
1st Aug 2022, 4:00 AM
zexu knub
zexu knub - avatar