CSRF and CORS Explained

Поделиться
HTML-код
  • Опубликовано: 15 янв 2025

Комментарии • 32

  • @felixsebastian1911
    @felixsebastian1911 3 месяца назад +2

    Excellent video. The bit about hackers just ‘using an older browser’ left me pondering a bit though

  • @marksaravi7160
    @marksaravi7160 2 года назад +3

    Good speaker and clear explanation. You are a start!

    • @tejask
      @tejask  2 года назад

      Thank you Mark!!!

  • @tonyabifadel1872
    @tonyabifadel1872 3 месяца назад +1

    YOU ARE THE BEST! You just earned a subscriber

    • @tejask
      @tejask  2 месяца назад

      Thanks for the sub!

  • @favouritejome
    @favouritejome 2 года назад +3

    All this time I never really made effort knowing more about CORS, anytime I encounter the CORS warning I just say hey, backend guy, I'm getting a CORS error, fix it 😂. It's great learning about it, so thanks for making this video. Also taking about Cross Site Request Forgery . which is my first time hearing or knowing about it.

  • @angelinagokhale9309
    @angelinagokhale9309 4 месяца назад +1

    Thank you for this explanation!

    • @tejask
      @tejask  3 месяца назад

      Glad you enjoyed it

  • @bbstriker
    @bbstriker 2 года назад +1

    That was a great and very articulate description. Thank you

  • @anuonline9673
    @anuonline9673 Год назад

    No better explanation needed buddy.. This is great 👍😊

  • @premaseemjain
    @premaseemjain 2 года назад +1

    Thanks for explaining this Dude. It totally makes sense.

  • @briansans-souci9083
    @briansans-souci9083 9 месяцев назад +1

    Great explanation man!!!! Thanks from Mauritus!

    • @tejask
      @tejask  9 месяцев назад

      Glad it was helpful!

  • @Chill_dood_007
    @Chill_dood_007 6 месяцев назад

    Thanks bro...its easier to grasp the basics

  • @jiyelaljaiswal7458
    @jiyelaljaiswal7458 8 месяцев назад +1

    Superbly explained 🙂🙂😊

  • @ejborba
    @ejborba 2 года назад

    Great content mate! Really enlightening, keep up the good work!

  • @keshavjha2641
    @keshavjha2641 3 года назад

    Good one tejas 👏👏

  • @lilialola123
    @lilialola123 2 года назад

    Great video, thank you!

  • @abhijithsj1
    @abhijithsj1 Год назад

    For CSRF implementation, For each Request, we need to call get CSRF token and then execute core action call along with return token?
    In terms of performance Do we have any other option? Because currently, each core method call will be 2 network call ?

  • @ME-ls9de
    @ME-ls9de 10 месяцев назад

    good stuff, thanks!

    • @tejask
      @tejask  10 месяцев назад

      Glad you liked it!

  • @MarinaMarina-fr8ex
    @MarinaMarina-fr8ex Год назад +1

    I was struggling to understand these concepts, and now that I finally understood, I think that your explanation is not right. Same origin policy (SOP) or CORS may prevent other sites to open page with content, actually to read response...but it does not prevent sending request. So that is why CORS does not save us from CSRF because if someone wants to perform attack he is interested only in post request.

  • @shreshthmohan
    @shreshthmohan 2 года назад +1

    This is going to be a meme! Sorry Tejas. 2:26

  • @gaurabsarkar7400
    @gaurabsarkar7400 3 года назад

    Can you please talk about CSR vs SSR whenever convenient 🙌

    • @tejask
      @tejask  2 года назад

      On my list!

  • @shriramcs
    @shriramcs 3 года назад

  • @felixsebastian1911
    @felixsebastian1911 3 месяца назад +1

    I loved this video, the delivery is great. But unfortunately after looking into CSRF further I’m disappointed to find that this is not correct.
    The Same-Origin policy is basically the default CORS policy. It’s aimed at protecting malicious sites from reading content they shouldn’t have access to, especially via AJAX. CSRF is mostly the servers responsibility, and is usually solved with csrf tokens, the samesite cookie attribute, and the Origin header which can be checked server side. CORS policies and the default Same-Origin policy generally don’t protect against CSRF attacks.
    Let’s be careful when providing info on web security! 🙏

  • @lifeofsq5653
    @lifeofsq5653 Год назад +5

    CORS and CSRF are different, CORS do not protect against CSRF, Origin and sites are totally different concepts bro. Even with all cors protection in place csrf attacks are still prevalant

    • @salmancheema3975
      @salmancheema3975 3 месяца назад

      Bro is it possible that if csrf exist in a program, but there is no CORS, can we exploit still CSRF?

  • @francobregoli8920
    @francobregoli8920 2 года назад

    sos un capo chabon