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
- Update config/cors.php
- Add FRONTEND_URL to .env
- Verify middleware
- Test with curl or Postman
Reference
- Roadmap:
docs/roadmaps/Implementation_Roadmap_Backend.mdPhase 5, Step 10 - Standards:
backend/CLAUDE.md- CORS section
Related Issues
- Depends on: #8 (closed), #9 (closed)