mirror of
https://github.com/cdr/code-server.git
synced 2026-04-12 01:51:26 +02:00
- Add isTrustedOrigin() helper that matches exact strings, '*', or regex literals in the form /pattern/flags (e.g. /^.*\.example\.com$/i) - Use isTrustedOrigin in authenticateOrigin() for --trusted-origins - Add unit tests for isTrustedOrigin and for regex/wildcard in origin auth Made-with: Cursor |
||
|---|---|---|
| .. | ||
| common | ||
| node | ||
| helpers.test.ts | ||