caterium-app/tests
pavlov346346-source aeca9eae99 fix: lock down caterium-platform-auth-admin CORS to allowlisted origins
This Edge Function grants platform-admin power (list every user across
every workspace, ban/unban accounts, trigger password resets for any
user_id) but answered with Access-Control-Allow-Origin: '*', unlike the
sibling caterium-create-employee function which already uses an origin
allowlist. Authorization itself was never bypassable this way (the
function still requires the caller's own Bearer token and re-checks
sun_is_platform_admin() server-side), but a wildcard CORS response
removes a real layer of defense-in-depth if a platform-admin token were
ever exposed to another origin.

Applies the same allowedOrigin()/corsHeaders() pattern already proven in
caterium-create-employee, and extends edge-security-v1774.mjs (which
already asserted the wildcard was gone from create-employee, but never
checked this function) to cover both.

Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
2026-09-12 14:09:16 +03:00
..
app.spec.mjs Caterium v17.7.3 — clients server read 2026-09-09 12:07:37 +03:00
auth-security-v1774.mjs Security: require verified email for signup 2026-09-11 07:27:37 +03:00
branding-v1774.mjs test: guard Caterium visible branding 2026-09-11 10:03:35 +03:00
edge-security-v1774.mjs fix: lock down caterium-platform-auth-admin CORS to allowlisted origins 2026-09-12 14:09:16 +03:00
employee-create-v1774.mjs Fix employee creation for existing accounts 2026-09-11 07:34:43 +03:00
html-integrity-v1774.mjs Fix malformed style boundary and guard HTML integrity 2026-09-11 07:41:42 +03:00
order-enhancements-v1775.mjs test: remove reminder requirements from order enhancements 2026-09-11 15:21:32 +03:00
playwright.config.mjs Caterium v17.6.0 - GitHub Cloudflare autodeploy 2026-09-07 15:29:20 +03:00
release-check.mjs Caterium v17.7.3 — clients server read 2026-09-09 12:07:37 +03:00
static-security.mjs Caterium v17.7.3 — clients server read 2026-09-09 12:07:37 +03:00