Learn CORS In 6 Minutes

preview_player
Показать описание
CORS, also known as Cross-Origin Resource Sharing, is something every web developer has to deal with at some point. Chances are if you are watching this video then you are probably dealing with a CORS error right now. In this video I will tell you what CORS is and how you can fix CORS errors.

📚 Materials/References:

🌎 Find Me Here:

⏱️ Timestamps:

00:00 - Introduction
00:24 - Basic CORS
03:30 - Preflight Methods
05:19 - Sending Credentials

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

Well.. It's easy when you actually have an access to the server. The real problem for me is when you are working with API's and run into cors. That's when i start thinking about jumping off of a bridge

aplefull
Автор

CORs is one of those problems that every single developer faces. Thanks for the explanation!

TomDoesTech
Автор

Dude ive been binging your videos for weeks. Just got my CS bachelors and you've taught me more than all my professors combined. Thank You for firing up my love for frontend.

jcpluto
Автор

I've been developing for what feels like forever, and these small things (like CORS) still crop up and interrupt flow. As you point out, the solutions in reality are always simple in the end :) It's so helpful to have a quick few minute burst of solution orientated goodness. Another issue put to bed for good. Thanks man!

SeanClarkeMusic
Автор

Yours 30 seconds cookie part really helped me a lot. Had spend my whole morning working on cors, even read all answers on Stackoverflow and cors documentation but was still getting problem related to cookies. Your video is really a life saver and also at the best time. Really love you a lot❤️❤️

AnonymousHandle
Автор

After a year of working on native apps I come back to a web project and run into this issue immediately, then your video comes out a couple days later, Perfect!!

dehnhunsworth
Автор

Something I have tried to understand for a while but never got it, and you manage to describe and demo it in about 6 minutes... Awesome!

Golgafrincham
Автор

You made my morning by starting off with one of my favorite spongebob clips lol.

gtv
Автор

It’s actually the browser which is blocking the request, not the server. CORS is a safety measure for the client, all the cors library on the server is doing is setting the response header.
You can test this by replaying the same request through something like postman.
I know this might seem like a semantic difference but it’s important to realise that adding the cors package to your server gives you absolutely no control over where requests to your server originate from. It only tells browsers to block requests to your server originating from another domain.

d.sherman
Автор

Solved a 2 days long headache in a simple well explained video of 6:03 minutes, bro, you are awesome! 🔥🔥

amirjosevelasquezaburdene
Автор

Last year, this particular error set us(our team) back about 3-5months give or take and it really means the world to the dev community how you were able to provide a solution in a very well-explained manner. Thank you very much👏

Kglviews
Автор

omgsh.. that spongebob snippet! perfect description of my emotions with CORS. Thank you for providing the basics to understand it!

SecretEyeSpot
Автор

Thanks man for making a separate video. Few days back I was stuck with the same and had to refer to your Spotify clone video. ❤️

pritamdas
Автор

The best thing of this channel is that you're explaining well in a simple and easy English language, keep going;

programmingonly
Автор

You absolutely rock. I swear half my knowledge is from your channel. Thank you so much for all you do

calarcher
Автор

When I simply searched about this problem on YT.
The algorithm just gave useless videos.
And here I suddenly found THE perfect video just randomly scrolling your channel's videos. 😐

invalidaccount
Автор

This is a wonderful video, I've actually searched for this problem many many times before and it has been very frustrating. I bet many people will find it very useful!
Thanks Kyle!

MiSt
Автор

Thanks for explaining something that I feel often is presented in a complicated and misleading way, in a much simpler one. You explained well what the issue is and how to solve it. Keep it going that way :)

matiascavalcante
Автор

You are always on point with your tutorials! Great stuff man!

johnrobertsonnocos
Автор

This is great. your shorter videos are more concise and digestable than longer ones

kduisheev