php-api/src/Api
darbs-claude d6c00e4ba8
Some checks failed
CI / PHP 8.2 (pull_request) Failing after 1s
CI / PHP 8.4 (pull_request) Failing after 1s
CI / Assets (pull_request) Failing after 1s
CI / PHP 8.3 (pull_request) Failing after 1s
test(cors): add comprehensive PublicApiCors middleware tests (#8)
Tests cover:
- OPTIONS preflight returns 204 with no body and skips next handler
- CORS headers added to GET/POST responses
- Origin header echoed back; wildcard used when absent
- Correct allowed methods (GET, POST, OPTIONS)
- Correct allowed headers (Content-Type, Accept, X-Requested-With)
- Rate limit headers exposed to browser clients
- Max-Age 3600 and Vary: Origin for correct cache behaviour
- Access-Control-Allow-Credentials intentionally absent (security boundary)

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
2026-02-20 23:49:17 +00:00
..
Concerns feat(api): add invalidStatus and providerError response helpers 2026-01-29 21:18:56 +00:00
Console/Commands refactor: update namespaces for L1 package convention 2026-01-27 17:34:34 +00:00
Contracts refactor(api): relocate API module to Core\Api namespace 2026-01-27 16:14:36 +00:00
Controllers refactor(api): relocate API module to Core\Api namespace 2026-01-27 16:14:36 +00:00
Database/Factories feat(security): add API key IP whitelisting with CIDR support (P1-004) 2026-01-29 13:20:58 +00:00
Documentation refactor(api): relocate API module to Core\Api namespace 2026-01-27 16:14:36 +00:00
Enums refactor(api): relocate API module to Core\Api namespace 2026-01-27 16:14:36 +00:00
Exceptions refactor(api): relocate API module to Core\Api namespace 2026-01-27 16:14:36 +00:00
Guards refactor: update namespaces for L1 package convention 2026-01-27 17:34:34 +00:00
Jobs refactor(api): relocate API module to Core\Api namespace 2026-01-27 16:14:36 +00:00
Middleware feat(security): add API key IP whitelisting with CIDR support (P1-004) 2026-01-29 13:20:58 +00:00
Migrations feat(security): add API key IP whitelisting with CIDR support (P1-004) 2026-01-29 13:20:58 +00:00
Models test(scopes): add comprehensive API scope enforcement tests (P2-008) 2026-01-29 19:34:40 +00:00
Notifications refactor: update namespaces for L1 package convention 2026-01-27 17:34:34 +00:00
RateLimit refactor(api): relocate API module to Core\Api namespace 2026-01-27 16:14:36 +00:00
Resources refactor: update namespaces for L1 package convention 2026-01-27 17:34:34 +00:00
Routes refactor(api): relocate API module to Core\Api namespace 2026-01-27 16:14:36 +00:00
Services feat(security): add API key IP whitelisting with CIDR support (P1-004) 2026-01-29 13:20:58 +00:00
Tests/Feature test(cors): add comprehensive PublicApiCors middleware tests (#8) 2026-02-20 23:49:17 +00:00
View refactor(api): relocate API module to Core\Api namespace 2026-01-27 16:14:36 +00:00
Boot.php feat(security): add API key IP whitelisting with CIDR support (P1-004) 2026-01-29 13:20:58 +00:00
config.php refactor(api): relocate API module to Core\Api namespace 2026-01-27 16:14:36 +00:00