CORS issue resolved in just one line of Code | How to call API from React without CORS issue | Proxy

preview_player
Показать описание
#CORS #CORSResolution #WebAPI #ReactJS

CORS is called as Cross origin resource sharing.

When we are calling your web api endpoints from react js project there is a chance that you will be getting CORS issue.
You might have seen a lot of resolution which none of that working for you.
Here is the resolution to your cors issue, You can enable the proxy setting and get rid of CORS issue.

I hope you like the resolution.

Thank you for watching !!
Рекомендации по теме
Комментарии
Автор

This is only for development side, How can we do it for production ?

himanshu
Автор

it is not working in angular whose structure has same packge.json file.

ghufranullah
Автор

my website not able to fetch data in my phone

shreyakumari
Автор

Thanks Bro. Your solution worked successfully.

kamakshyacharan
Автор

Thanks bro, it really helped. And i am subscribing your channel.

Abhishekkumar-fidy
Автор

Your solution helped me to resolve CORS issue. Thank you .

manadaladhamathuwithpavith
Автор

thank you very much, but what to do if we have to include multiple websites

gvardhan
Автор

I'm getting 301 error for some reason. Any idea?

TheRonron