Why I No longer Hate CORS and Why you should too!

preview_player
Показать описание
As we all know, CORS is a plague on the web which did make many of us go insane over The "has been blocked by CORS policy" error on different browsers whenever you're trying to request or post data to your API that is running on a different PORT or server. In this video, We'll understand CORS like we are 5 and I'm gonna make you love CORS again :)

⭐ Timestamps ⭐
00:00 Intro
00:44 Explaining CORS like you're 5
06:17 Ugly CORS
08:20 Getting over CORS. It's simple
11:21 CORS Headers you must know

🧭 Turn Design into React Code | From prototype to Full website in no time

🧭 Watch Tutorial on Designing the website on Figma

🧭 Watch Create a Modern React Login/Register Form with smooth Animations

🧭 Debug React Apps Like a Pro | Master Debugging from Zero to Hero with Chrome DevTools

🧭 Master React Like Pro w/ Redux, Typescript, and GraphQL | Beginner to Advanced in React

🧭 Learn Redux For Beginners | React Redux from Zero To Hero to build a real-world app

🧭 Build Login/Register API Server w/ Authentication | JWT Express AUTH using Passport.JS and Sequelize

🧭 Introduction to GraphQL with Apollo and React

Made with 💗 by Coderone
Рекомендации по теме
Комментарии
Автор

Thank you! I get it now! I used to just get frustrated.. now I kind of know what to do and look for. Now I gotta figure out how to configure it for Spring Boot. Thanks!

michaelhashimoto
Автор

CORS is always something strange for a dev 😝 this content is very helpful 👏🏻

universecode
Автор

CORS is complete bullshit. You can't do the request from the browser, but you can use a proxy that calls the request, and call the proxy in the browser. Completely useless.

But I understand, that the application can not steel a different session, it could be implemented different tho, imo... Blocking the request completly is dump. Just remove the session.

timkilian
Автор

Awesome video. luckily I find it. It solved my problem.Thanks.

sathiyasp
Автор

crack!! finally dudeee thanks for putting it this way

luisbarbosa
Автор

I am trying to fetch data from an api using react but the api isn't my own so i do not have access to add the cors middleware to it how do I go about that

slot
Автор

this is one of the best explanation on CORS

josephuzuegbu
Автор

Gee that’s nice. Now what do I do about “require is not defined?”

tammielisa
Автор

I still haven't an answer: What is the point of cors? What is trying to achieve?

juanausensi
Автор

when i started learning there was no thing called cors and when it came i already knew why it is implemented :P

amirrahman
Автор

I have this as my unsolved problem -_-

ranchpanda
Автор

Why you should too! or you shouldn't?

mrkhoros
Автор

you don't need to install CORS... while you can add a simple HTTP header: Access-Control-Allow-Origin :v

jayvee-official
Автор

For everyone who wants to improve the Security Headers on your site

vasiovasio