code-server/test/unit/node
Mohammed Abdul Sattar 4a056b8736 feat: add regex support to trusted-origins
- 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
2026-03-09 14:52:07 -04:00
..
routes Handle undefined body 2024-04-16 11:29:12 -08:00
app.test.ts Update dependencies and force-update qs (#6440) 2023-09-21 16:13:34 -08:00
cli.test.ts Add language customization flag (#7374) 2025-07-15 12:38:27 -08:00
constants.test.ts refactor: remove dead code (#5188) 2022-05-10 22:44:54 +00:00
heart.test.ts Add idle timeout (#7539) 2025-10-28 16:10:56 -08:00
http.test.ts feat: add regex support to trusted-origins 2026-03-09 14:52:07 -04:00
i18n.test.ts Add language customization flag (#7374) 2025-07-15 12:38:27 -08:00
main.test.ts Add idle timeout (#7539) 2025-10-28 16:10:56 -08:00
proxy.test.ts Add skip-auth-preflight flag to allow OPTIONS requests through proxy (#7284) 2025-04-14 11:27:02 -08:00
settings.test.ts chore: bump typescript from 5.6.2 to 5.8.3 (#7335) 2025-06-16 15:32:00 -08:00
socket.test.ts Update Code to 1.94.2 (#7026) 2024-10-17 20:32:21 -08:00
update.test.ts Update dependencies and force-update qs (#6440) 2023-09-21 16:13:34 -08:00
util.test.ts Remove humanPath (#6404) 2023-08-29 14:25:24 -08:00
vscodeSocket.test.ts Set session socket into environment variable (#6282) 2023-06-21 22:47:01 -08:00
wrapper.test.ts release: 4.9.0 (#5772) 2022-12-06 13:28:27 -07:00