CORS support

#15 · open · 0 comments

View on GitHub ↗

kingRayhan

## Description Built-in CORS header handling for API projects. ## Proposed API ```php // Simple — allow all $app->cors(); // Configured $app->cors([ 'origin' => ['https://example.com'], 'methods' => ['GET', 'POST', 'PUT', 'DELETE'], 'headers' => ['Content-Type', 'Authorization'], ]); ``` Could also be implemented as a middleware once #middleware is done. ## Priority Medium

Comments