mirror of
https://github.com/Heretek-AI/AetherTable.git
synced 2026-11-10 04:31:26 -10:00
- CORS: replace wildcard origins + credentials with an env-driven allowlist (CORS_ALLOW_ORIGINS), mirroring the engine's strict_cors. - identity: engine proxies (spawn/cast-spell/move/turn-next/damage/ reactions-arm, plus attack and death-save) now verify the caller's token and mint a forwarded-identity HMAC token carrying the real user_id and role, so the engine's RBAC authorizes the actual actor. Previously every proxied action spoke as 'orchestrator-service' with no role and was rejected ENTITY_NOT_OWNED on player-owned entities — deployed characters could not be driven end-to-end. Omitting the token keeps legacy service-mediated behavior. - tests: proxy identity forwarding, 401 on invalid tokens, contract route updated to act as GM. Co-Authored-By: Claude <[email protected]>