Configure CORS for Frontend

Description

Configure CORS to allow frontend (localhost:3000 and client.frontendechoes.com) to access API.

Acceptance Criteria

  • config/cors.php configured
  • localhost:3000 allowed for dev
  • client.frontendechoes.com allowed for prod
  • CORS middleware verified in Kernel.php
  • Preflight requests work

Implementation Steps

  1. Update config/cors.php
  2. Add FRONTEND_URL to .env
  3. Verify middleware
  4. Test with curl or Postman

Reference

  • Roadmap: docs/roadmaps/Implementation_Roadmap_Backend.md Phase 5, Step 10
  • Standards: backend/CLAUDE.md - CORS section

Related Issues