Laravel SPA Auth different domains

Поділитися
Вставка
  • Опубліковано 8 лис 2024

КОМЕНТАРІ • 33

  • @jondoe79
    @jondoe79 Рік тому +6

    Drac, your tutorials are the best explained and concise 🎉

  • @Andre_RDX5
    @Andre_RDX5 Рік тому

    Constantin, AGAIN you are my hero! Your tutorials always cut to the core detail of a solution. Thank you for a really great learning experience.

    • @Andre_RDX5
      @Andre_RDX5 Рік тому

      And I've subscribed for your course. When, When, When!? 🤣😂

  • @AmandaColares-x4t
    @AmandaColares-x4t 10 місяців тому +1

    very good explanation

  • @_timestamp
    @_timestamp Рік тому

    Fireship who? You are the number one on youtube tech now 😂

  • @bootstraply
    @bootstraply Рік тому

    You are awesome, really needed this, thank you

  • @JoaoSilva-of6pl
    @JoaoSilva-of6pl Рік тому +1

    Amazing! Thank You!

  • @d3vfc334
    @d3vfc334 9 місяців тому

    YOU'RE THE BEST 🎉

  • @AmeerHamza-fu3rz
    @AmeerHamza-fu3rz Рік тому

    Thankyou for such a great course,
    Can you also make videos on Laravel socialite Authentication (login with goggle, login with apple ID) with Nuxt 3.

  • @basarokke4403
    @basarokke4403 Рік тому

    ❤FINALLY. THANK YOU

  • @awaidus
    @awaidus Рік тому +1

    Super fantastic

  • @jacquesmatike9289
    @jacquesmatike9289 5 місяців тому

    Thanks a lot 🎉

  • @yasirarafat-dev
    @yasirarafat-dev 7 місяців тому

    How we can setup custom domain for nuxt app. like u setup. for my environment I am using laragon which have custom domain features. But I can't make it to work for nuxt app.
    And thank you for your videos. It's really helpful.

  • @shortymx20
    @shortymx20 9 місяців тому +1

    I'm having a hard time fully understanding this example. Isn't the proxy irrelevant? It does make the first example work, but it's a bit of a weird use case in my opinion. Technically, it only works because the laravel backend does actually live on the same domain nuxt.test. The api.test route only points towards that. If you actually were to host the laravel backend at api.test, the proxy itself wouldn't work too, like in the other 2 examples.
    To make the other 2 examples work, you removed SESSION_DOMAIN from the .env. I feel like now direct requests would also work without a proxy?
    And isn't removing the session domain a big security risk? There has to be a reason it's in the .env. Couldn't I make successful authentication requests to the laravel api from any domain now?

  • @Vladimir-if1uk
    @Vladimir-if1uk 8 місяців тому

    @cdruc What is better, use this proxy opportunities or implement them on nginx side? And is it possible?

  • @andresfontalvo2430
    @andresfontalvo2430 4 місяці тому

    Broooooooooo

  • @nielsvandervlist3520
    @nielsvandervlist3520 7 місяців тому

    What about this:
    Cookies with the SameSite=None; Secure and not Partitioned attributes that operate in cross-site contexts are third-party cookies. In future Chrome versions, setting third-party cookies will be blocked. This behavior protects user data from cross-site tracking.
    Not to worry when using a proxy?

  • @MsIlius
    @MsIlius Рік тому

    ❤ thanks please create a content for nuxt 3 shared host deployment.

  • @hnccox
    @hnccox Рік тому

    Can you make a video how to login different TLD using laravel sanctum tokens or JWT ?

  • @iamsomraj
    @iamsomraj Рік тому +1

    Hey! Could you please the mention the font and theme?

    • @cdruc
      @cdruc  Рік тому

      Night Owl + SF Mono font 👌

  • @hnccox
    @hnccox Рік тому +1

    Thanks!

    • @cdruc
      @cdruc  Рік тому +1

      Thank you 👊

  • @WalidWalid-wg7rk
    @WalidWalid-wg7rk 5 місяців тому

    what is the name of the editor please

  • @MrFloat4494
    @MrFloat4494 11 місяців тому

    How can I use Laravel Sanctum API to interact with Nuxt?

    • @cdruc
      @cdruc  11 місяців тому

      not sure what you mean by that mr Trump. Like laravel calling a nuxt api endpoint?

    • @setiawansetya9776
      @setiawansetya9776 10 місяців тому

      mr. Trump? lol 😆

  • @วีระพงษ์สุราโพธิ์-บ9ป

    Why show 419 proxy reauthenticarion required

    • @cdruc
      @cdruc  Рік тому

      missing x-xsrf-token header probably

    • @วีระพงษ์สุราโพธิ์-บ9ป
      @วีระพงษ์สุราโพธิ์-บ9ป Рік тому

      @@cdruc I put the project into production const response = await fetch("/backend/login", {
      credentials: "include",
      method: "POST",
      headers: {
      accept : 'application/json',
      'x-xsrf-token': useCookie('XSRF-TOKEN').value || ""
      },
      body: form.value
      }); or i can use localstorage auth?

  • @mujiburrahman4609
    @mujiburrahman4609 Рік тому

    Please make laravel vue inertia project how to integrate dashboard . Please please Please please