This Fixes CORS

  Рет қаралды 5,392

Colby Fayock

Colby Fayock

Күн бұрын

Пікірлер: 24
@colbyfayock
@colbyfayock 3 ай бұрын
Learn how to build a full stack Next.js app in my upcoming course: colbyfayock.com/course
@AndrewJot-z9l
@AndrewJot-z9l Ай бұрын
By far the best video that really explains CORS and how to overcome it!
@colbyfayock
@colbyfayock 29 күн бұрын
🙇‍♂️
@LeHarT99
@LeHarT99 5 ай бұрын
Bro you just saved me, THANK YOU!. Suscribed and liked this video
@colbyfayock
@colbyfayock 5 ай бұрын
happy to hear that! 🙌 and thanks for the sub 😁
@nemeziz_prime
@nemeziz_prime 5 ай бұрын
Amazing video as usual! Keep going 💪🏻
@colbyfayock
@colbyfayock 5 ай бұрын
thank you!!
@notrab
@notrab 5 ай бұрын
Nice video @colbyfayock! Another workaround I've been trying lately (but need to measure bandwidth usage) is by adding a `rewrites` option to my Next.js config. The source would be the path I want to post to (could be your API), then the destination the original. I've been using it for file uploads, so this could get expensive $$$$
@colbyfayock
@colbyfayock 5 ай бұрын
ohhh thats interesting! i never thought about rewrites from a billing perspective, is that measured in bandwidth?
@bandekhoda7801
@bandekhoda7801 4 ай бұрын
Wait a minute isn't this a huge security issue in the browsers, that I can easily fetch from a website I just opened up and have that website URL as my origin? Does the IP also point to that website I'm fetching from (in the console) or is it my IP? Is the website allowed to not let people fetch using it's origin?
@colbyfayock
@colbyfayock 4 ай бұрын
i dont know that i completely follow your question, but: - yes you can theoretically go to your browser's console and create a same-site origin request to the website you're on - there are extra security guards that you can place, that larger websites often place, to prevent someone from abusing that, such as authentication, rate limiting, DDOS prevention, etc - im not sure what you mean by the IP question - by default, without CORS headers, you can not fetch from a website from another origin, this video shows how to do that in a way that you're not allowing ALL websites to make those requests, but only the ones that you choose
@LearnAlongFaizan
@LearnAlongFaizan 4 ай бұрын
Great video, Please make complete tutorial on authjs v5, rolebased, customer cookie, client side validations
@colbyfayock
@colbyfayock 4 ай бұрын
thanks for the idea!
@LearnAlongFaizan
@LearnAlongFaizan 4 ай бұрын
@@colbyfayock I hope so you've started making the video, because I've turned on your notification.
@colbyfayock
@colbyfayock 5 ай бұрын
Get fresh tutorials and other free content straight to your inbox! colbyfayock.com/news
@colbyfayock
@colbyfayock 5 ай бұрын
@CricMaster-oo6uf hey thanks for the idea, will keep it in mind!
@nitinmungilwar659
@nitinmungilwar659 5 ай бұрын
Great Colby 👍
@colbyfayock
@colbyfayock 5 ай бұрын
thanks! 🙌
@v1d300
@v1d300 5 ай бұрын
So I never needed the cors npm package?
@colbyfayock
@colbyfayock 5 ай бұрын
this is my first time seeing the cors package, but it looks like it's still a great and easy way to configure CORS specifically in an Express app, where im not sure that this would work inside of a serverless function? but if you wanted to avoid using CORS, you could use this technique to configure the headers yourself, which is partially what the package does
@kenshinhimura3140
@kenshinhimura3140 5 ай бұрын
He became my friend now
@colbyfayock
@colbyfayock 5 ай бұрын
💯
@alvingultiano519
@alvingultiano519 3 ай бұрын
damn this one is really something :D
@colbyfayock
@colbyfayock 3 ай бұрын
💯
React Proxy | Easiest Fix to CORS Errors
15:52
Sam Meech-Ward
Рет қаралды 92 М.
Favicons the Right Way
18:07
Colby Fayock
Рет қаралды 11 М.
Из какого города смотришь? 😃
00:34
МЯТНАЯ ФАНТА
Рет қаралды 2,4 МЛН
БУ, ИСПУГАЛСЯ?? #shorts
00:22
Паша Осадчий
Рет қаралды 2,8 МЛН
You Don't Need a CMS - Use This Instead
28:55
Colby Fayock
Рет қаралды 25 М.
Best Way to Add Popup Modals in React
26:19
Colby Fayock
Рет қаралды 10 М.
Lint & Format JavaScript with Biome
23:20
Colby Fayock
Рет қаралды 6 М.
Build your own Notion-like WYSIWYG Editor in React
20:27
Colby Fayock
Рет қаралды 17 М.
How To Solve CORS Error? Learn CORS in 6 mins
6:32
Etisha Garg
Рет қаралды 9 М.
Pagination in React
29:05
Colby Fayock
Рет қаралды 3,7 М.
The Easy Way to Design Top Tier Websites
11:54
Sajid
Рет қаралды 579 М.
Build a Web Scraper API with Puppeteer
15:23
Colby Fayock
Рет қаралды 7 М.
Q Mobile SL 100 Best Mobile Phone
0:44
Gaming world
Рет қаралды 940 М.
Мучительная смерть  HUAWEI Mate XT
0:58
Кик Обзор
Рет қаралды 4,1 МЛН
Durability test of Galaxy Note 8 vs S24 Ultra 😁 #galaxynote8 #s24ultra #iphonexr
0:28
Samsung® telefonlara dair herşey
Рет қаралды 27 МЛН
Как подключить магнитолу?
0:51
KS Customs
Рет қаралды 2,1 МЛН