Skip to content

Instantly share code, notes, and snippets.

View Edd-war's full-sized avatar

Eduardo Arroyo Morales Edd-war

View GitHub Profile
@Haythamasalama
Haythamasalama / laravel-spa-authentication.md
Last active July 2, 2024 17:48
Setting Up Authentication for Laravel Single Page Applications (SPA)

Setting Up Authentication for Laravel Single Page Applications (SPA)

Suppose you have two websites that require authentication:

  1. localhost:8000 (backend)
  2. localhost:3000 (frontend)

Configuration Steps:

  1. Allow origins for https://localhost:3000/