Skip to content

Instantly share code, notes, and snippets.

View greenspace10's full-sized avatar
🏠
Working from home

Nathan Robinson greenspace10

🏠
Working from home
View GitHub Profile
@Haythamasalama
Haythamasalama / laravel-spa-authentication.md
Last active January 22, 2025 06:35
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/