CORS in Laravel & Sanctum

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

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

  • @Thotsuya
    @Thotsuya 8 месяцев назад +2

    I can't express enough how much your videos and answers on stackoverflow have helped me out. Thank you Cdruc!

  • @bespoke00
    @bespoke00 8 месяцев назад +2

    The club bouncer reference really got me. 😀

  • @b-o-t-l-y
    @b-o-t-l-y 8 месяцев назад +1

    The best thing I've seen! I liked your clean approach! Thank you very much!

    • @cdruc
      @cdruc  7 месяцев назад

      Glad it was helpful! 👊

  • @SilVer-hu2ps
    @SilVer-hu2ps 8 месяцев назад

    You're the one who thought me about Vue and Laravel development using API. And I THANK YOU FOR THAT.

  • @MikeBrownphx
    @MikeBrownphx 25 дней назад

    Amazing video. Thank you!

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

    Amazing. been scratching my head why it refused to work for me but this solved it for me! liked and subbed!

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

    Great video as always ! Thank you cdruc

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

    Great video and very clear explanations 👍 Thank you!

  • @th3ja
    @th3ja 7 месяцев назад

    Awesome content! Keep it up!
    I'm using filament for my admin panel from a different domain. For testing purposes, I've left wildcards in the cors config file. It's worth mentioning im using jetstream which comes with its own middleware. But the sanctum is more towards api endpoints. The issue im having is viewing the images from storage folder when I want to view or edit my previously created record from the subdomain. I can however preview them on my record's image column.

  • @rosu2048
    @rosu2048 6 месяцев назад +1

    probably the most straight forward explanation though, great content sir :))

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

      thanks!

  • @user-vi2fp6dl7b
    @user-vi2fp6dl7b 3 месяца назад

    Good job! Thank you very much!

  • @jc0164
    @jc0164 8 месяцев назад

    excellent !!!! thank's very much !! 😊

  • @congnghe24h55
    @congnghe24h55 8 месяцев назад

    Great, thanks very much

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

    Great 👍🏻

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

    haha great explanation, thank-you 🙂

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

    Thank you very much

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

    what if even though the allow access origin is set up to * or to the actual URL is defined properly, the CORS policty is still blocking the request, what can we do, besides messing up with httpd.config in apaches server?

  • @hnccox
    @hnccox 8 месяцев назад

    Great video!
    I send you an email yesterday, I was wondering if you received it?
    It briefly touches on https for a Laravel app behind a reverse proxy as well as verifying an email with Laraval Fortify from a different browser as from where the request was made.

  • @4san_gamers
    @4san_gamers 18 дней назад

    thanks

  • @illiantes6955
    @illiantes6955 8 месяцев назад

    I have a instance in amazon aws but my configuration present problems with CORS, I implemented this way for permissions in my other server but not solution my problem, please help

  • @ahmadfraz5846
    @ahmadfraz5846 4 месяца назад

    very well

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

    Can you make a video about how to work with sanctum staging server with a domain and using localhost for frontend dev environment
    How to make the localhost talk to the staging and accept cookies without breaking the real staging frontend

  • @Prohayas
    @Prohayas 4 месяца назад

    Can you share a copy of your login component code?

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

    sir, I don't have cors.php or kernel.php, may I know what version you are using? because I'm using laravel 11

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

      hey, this video was made using laravel 10.
      you're probably using laravel 11 where some of the config files are not "published".
      you can either chose to publish them: laravel.com/docs/11.x/configuration#configuration-publishing
      Or, if you are setting up an application from scratch, scaffold it using Laravel Breeze: laravel.com/docs/11.x/starter-kits#introduction

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

      @@cdruc Thank you so much sir, it solve my problem :)

  • @ila6545
    @ila6545 Месяц назад

    I dont understand what did I miss.I am still getting cORS errror..Any help?

    • @cdruc
      @cdruc  Месяц назад

      well…what error are you getting?

    • @ila6545
      @ila6545 Месяц назад

      @@cdruc thanka for the reply,I re run npm install and got it fixed.

  • @coffeeandtalk
    @coffeeandtalk 7 месяцев назад

    man your chnnel should have thousands of subscribers, good content

    • @cdruc
      @cdruc  7 месяцев назад

      i technically do have thousands but thanks 😂

    • @coffeeandtalk
      @coffeeandtalk 7 месяцев назад

      @@cdruc millions then bro 😂