React Proxy | Easiest Fix to CORS Errors

preview_player
Показать описание
Proxying API Requests in Development using Vite, Parcel, or Create React App. If your plan is to host your react app from the same origin as your web server, then this is super helpful. Conveniently, this also avoids CORS issues. I'll also show you how to deploy your react app using your express server and railway.

Chapters:
0:00​ Intro
2:56 CORS
3:38 Deploying a React App
7:04 What is React Proxy
8:10 Adding a Proxy
11:14 Building the app for production
13:10 Deploying the app into production
15:13 Summary

🔗The Docs

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

sir, 4 hour, its 8:25AM, i was trying to solve this from around 3:30AM. you cant imagine how happy i am right now to find those 4 line of code in ur first 10 sec of i love you man even turned on bell icon cz u saved my project, i was about to delete it

toxy
Автор

This entire list of react focussed videos is great, It is obvious you spent a huge amount of energy on taking us along on the learning curve- just compare the first couple of videos to this, it's a great expansion building on the previous knowledge!

This video really blew me away with the quick deployment on railway, that's awesome.

Also loving the quick snippet at the start showing the main point!

---qpbs
Автор

Unlike every other youtubers who says bunch of nonsense and non related things before giving the actual information for which we came for, You gave the most important information in the first 10 seconds and proceeded to explain it later. You have our respect.

niranjans.r
Автор

I was so stressed out about the whole CORS issue, and this, this is just gold. Straight and to the point explanation! Really appreciate the work!!!

krishangsharma
Автор

This clears up a lot for me man. This is the first time I try to make a fullstack app and all these deployment issues are confusing af. Thumbs up for you 👍

tiktaktictac
Автор

Really awesome video. Telling the solution at start and then it's upto the user to say. Love it man! Hope to see more youtubers be this thoughtful

siddhantsrivastav
Автор

Thank you so much, after a week of search i got my issue fixed and finally the data renders on my frontend up! Keep up the great work! Thank again!

avalanche-arabic
Автор

bro after 2 and a half hours of struggling around, i had lost my hope. and the i decided to watch this full video as my last tether to sanity. and that stupid failed to fetch error is finally gone. thank you dude. god bless you.

knecks
Автор

I needed a solution as fast as possible, I looked a lot of videos that didn't help me, but this one in the first 30 seconds gave me the answer, thank you

juanguerrero
Автор

Just wanted to say this helped me in a bind. Thank you!

CoFloCipher
Автор

Thank you so much for this tutorial, I've searched lots of videos and site but none of them specified exactly how to solve it in vite. really appreciate it Sam

amouzande
Автор

you make videos of things I've wondered about at some point during my learning process, so good! this cors issue was something I fixed using an extension without really paying attentions to the whys and how's

jaitjacob
Автор

Can't thank you enough brother. After almost 4 hours of frustration, got the appropriate solution. Also, CORS package wasn't fulfilling the purpose, as suggested by other channels.

ashharSartaj
Автор

I've been looking for a solution about the proxy in vite-react for days, then this video solved it within 20 seconds. Thanks a lot!

itchybakerzz
Автор

God bless you man!!! Thank you very much for sharing what I was looking for in the first 10 seconds of the video instead of scattering it throughout the video... ❤

harshitprasad
Автор

Wow, that was fast mate. Thank you Sir :)

rogut
Автор

This video clears all my doubts about proxy server. amazing content!!

explorelifewithleo
Автор

I dont really know u and this is my first time of watching ur video but ur video just saved me after 4 days of trying to connect my vite React project with my node js without using are a life saver for that am again

oyivosamuel
Автор

I really like this pattern for building full stack react and node applications. Thanks for the video.

MatthewMcGuff
Автор

The first video I have ever commented on. CORS was driving me nuts. Thank you!

danielcinspace