How to fix a CORS (cross origin request) error for local host in Visual Studio Code

preview_player
Показать описание


Рекомендации по теме
Комментарии
Автор

Another option is to use build tools coming with a development server, like parcelJS. Your channel is a great resource, thank you.

AlessioDiLorenzo
Автор

Hey thanks alot man! I was stuck on this problem for like 2 weeks, tried to use the node package manager live-server thing but couldn't get it to work. Thanks alot! You solved my problem within 3 minutes.

parakhchaudhary
Автор

Thanks man this was really helpful unlike many other YT videos that I have came across

srikanthsharma
Автор

Thanks for sharing. This has caused me headaches in the past.

Franchyze
Автор

what about cases where u launch the site on a port? How to open it with live server?

RIMJANESSOHMALOOG
Автор

Sir i am still getting error. while trying to add form data to google sheet

imaansarwar
Автор

I would triple like this video if possible... wasted an entire morning figuring this out... much thanks

jingzhitay
Автор

Hi there,

Your post is great. But it seems the mentioned extension doesn't work in case of JavaScript fetch. I have got the same CORS error even if the Live Server is running. I checked but there aren't any options / settings for handling the fetch. I need to search for another solution for my problem.

laszlovarga