5 Commits

Author SHA1 Message Date
0xJacky
1cec07d6ea feat: implement demo mode for terminal with restricted commands 2026-03-14 23:49:58 +08:00
0xJacky
413dc631ee feat: add WebSocketTrustedOrigins configuration and implement origin validation for WebSocket connections
- Introduced `WebSocketTrustedOrigins` setting in `app.example.ini` and corresponding documentation.
- Refactored WebSocket origin checks across multiple API endpoints to utilize the new middleware for improved security.
- Added tests for the new origin validation logic to ensure proper handling of trusted origins and node secret requests.
2026-03-14 23:37:10 +08:00
Jacky
c5f5038d35 style(go): sort imports 2024-10-24 18:22:45 +08:00
Jacky
33a996e777 refactor: migrate to new cosy 2024-10-22 16:38:38 +08:00
0xJacky
50b4fbcda4 refactor: structure of api-router directory 2023-11-27 23:53:23 +08:00