What is CORS? | Cross-Origin Resource Sharing | CORS Explained!

แชร์
ฝัง
  • เผยแพร่เมื่อ 6 ก.ย. 2024
  • #web_security #cors #sop #csrf
    Understanding Cross-Origin Resource Sharing is essential if you’re a web developer or want to understand the browser security model. Cross-origin Resource Sharing is a way to relax the SOP, Same Origin Policy, the security mechanism whereby browsers prevent Cross-Site Request Forgery, or CSRF.
    In this video, what is CORS, and Why we need it?. You’ll understand how we can bypass the Same Origin Policy with CORS and how HTTP headers are used to customize CORS implementation.
    -------- Video Outline --------
    00:09 Browser functionalities and security model
    01:07 CSRF attack -- Cross-Site Request Forgery
    01:41 Same Origin Policy
    02:13 What is an Origin
    03:05 CSRF and SOP
    04:03 Relaxing SOP
    04:41 Introducing CORS
    05:17 CORS implementation -- HTTP Headers
    06:45 Preflight Request
    07:19 CORS in Web Browsers vs CLI client
    Resources to know more:
    * developer.mozi...
    * owasp.org/www-...
    Check out more of The TechCave Videos:
    * • What is a VPN & How do... - What is a VPN and How does it work? VPNs Explained!
    * • What is a Proxy Server... - What is a Proxy Server & How Does it work?
    * • The Http and the Web |... - HTTP and The Web
    * • APIs | REST | REST API... - REST APIs
    * • What is DevOps | Under... - DevOps
    * • Web Services - Demysti... - Web Services
    * • Software Architecture ... - Software Architecture
    Artwork and Illustration: Flaticon.com
    Stay Tuned!

ความคิดเห็น • 43

  • @tarmeez
    @tarmeez ปีที่แล้ว +4

    CORS is one of my biggest challenges when I teach programming to the beginners and why is this happening and what we can do to bypass it, great video, thank you so much 👌🏻

  • @andrewfielden284
    @andrewfielden284 2 ปีที่แล้ว +6

    What a great explanation. You've just demystified why my API call was a) sending two HTTP requests and b) why my JWT header item was being removed in the second one. Thank you!!

  • @ppena120
    @ppena120 ปีที่แล้ว +1

    I've been dealing with this issue for 2 days now and didn't really understand it until now. Thank you!

  • @Carlesgl81
    @Carlesgl81 ปีที่แล้ว

    i´ve been more than an hour trying to understand this concept with other videos, blogs. This video was my solution! Thanks!

  • @DaveO0808
    @DaveO0808 2 ปีที่แล้ว +1

    understanding CORS in 5 min is possible!
    well done thank you

  • @arsenshlianin3064
    @arsenshlianin3064 11 หลายเดือนก่อน

    дякую за зрозуміле пояснення

  • @bastienfontaine8539
    @bastienfontaine8539 8 หลายเดือนก่อน

    Thank you for this video ! I finally understood what's behind the concept of CORS 🔥

  • @khumbokaunda7402
    @khumbokaunda7402 ปีที่แล้ว

    Thank you very much for this wonderful explanation

  • @emmanuelobileye5643
    @emmanuelobileye5643 ปีที่แล้ว

    This was clearly explained. Thank you

  • @luanecarolineaquinocavalca1064
    @luanecarolineaquinocavalca1064 ปีที่แล้ว

    thank you so much, great explanation 👏🏽👏🏽👏🏽

  • @deanwhite8413
    @deanwhite8413 ปีที่แล้ว

    Fantastic explanation. Thanks!

  • @AliA-kp2ux
    @AliA-kp2ux ปีที่แล้ว

    Great video! Thanks very much 🙂

  • @aymaneelmadidi887
    @aymaneelmadidi887 3 ปีที่แล้ว +2

    Awesome video thanks for uploading.

    • @TheTechCave
      @TheTechCave  3 ปีที่แล้ว

      Thank you for your kind words!

  • @GB-mi5he
    @GB-mi5he ปีที่แล้ว

    What a GREAT video on this topic. Bravo!

  • @user-ti9yn8wg6o
    @user-ti9yn8wg6o ปีที่แล้ว

    So the browser is the one enforces CORS, and the resource server is the one that can be setup to relax the restriction.

  • @dyanzhao4927
    @dyanzhao4927 2 ปีที่แล้ว

    This nice video make me understand the relationship between CORS and SOP.

  • @lastidea4925
    @lastidea4925 ปีที่แล้ว

    Excellent explanation, thank you Sir ♥

  • @20rand
    @20rand 2 ปีที่แล้ว

    Thanks for the video, very helpful!

  • @jaelee1368
    @jaelee1368 2 ปีที่แล้ว

    Nice video on CORS, it's clear that you put a lot of effort into creating a high quality presentation.

  • @luisrosal1499
    @luisrosal1499 ปีที่แล้ว

    great explanation, good job!

  • @ivan-the-l
    @ivan-the-l ปีที่แล้ว

    Very nicely explained. Clear and on point 🔥

  • @benmichel1201
    @benmichel1201 2 ปีที่แล้ว

    Great walkthrough! Thanks for making this. 🙏

  • @jenks2897
    @jenks2897 2 ปีที่แล้ว

    What if I don't what to access or change any data just want to click a button on website A which then clicks or simulate a click on website B and execute a function, does this falls under CORS ?
    If not any suggestion on how this can be done?

  • @anasssoulimani9288
    @anasssoulimani9288 3 ปีที่แล้ว +2

    Great work! Awesome content as always❤

  • @TeverRus
    @TeverRus 2 ปีที่แล้ว

    The video is great, mate!

  • @sapnashah4807
    @sapnashah4807 2 ปีที่แล้ว

    can you explain important of CORS for client server

  • @pliegosevilla
    @pliegosevilla 2 ปีที่แล้ว

    Nice! Thanks

  • @ACLAproductions
    @ACLAproductions 2 ปีที่แล้ว

    This was an amazing explanation! Thank you :)

  • @andersonrafaelcunha1392
    @andersonrafaelcunha1392 2 ปีที่แล้ว

    Great video, very easy to understand with those examples.

  • @RandallReedJr
    @RandallReedJr 3 ปีที่แล้ว

    This is a really helpful explanation, thanks!

  • @divanvanzyl7545
    @divanvanzyl7545 3 ปีที่แล้ว

    Great explanation. Thank you

  • @itstinmoreno
    @itstinmoreno 2 ปีที่แล้ว

    Great video! Thanks for this! :)

  • @Toojool
    @Toojool 2 ปีที่แล้ว

    great explanation

  • @anaselkassimi7091
    @anaselkassimi7091 3 ปีที่แล้ว +1

    thank you so much

  • @erfelipe
    @erfelipe 3 ปีที่แล้ว

    Thanks!

  • @revenant-six
    @revenant-six ปีที่แล้ว

    It just feels like the browser developers want every api developer to feel the pain of the browser dev being accused by some random user of the user's stolen information from a random website. (In which case the browser developer, of course, is not to blame, it's just that users are so stupid.)

  • @Denosophem
    @Denosophem 2 ปีที่แล้ว

    henz the reason im looking this up, no companys want to take the blame for my identity theft. yea

  • @ovnigaz
    @ovnigaz 2 ปีที่แล้ว +2

    You going to fast and your explanation are confusing

  • @rockinray6197
    @rockinray6197 3 ปีที่แล้ว

    Bonzai..!