 CoheeandCopilot
|
d134abd50e
|
Server: Add host whitelisting (#4476)
* Add host whitelisting middleware
* Add prompt to enable hostWhitelist
* perf: Freeze config array
* Update src/middleware/hostWhitelist.js
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
* perf: Add max known hosts limit
* Add validation warning disable hint
* Add conditional host whitelist middleware based on SSL configuration
* Check for cache exhaustion before logging
* Revert "Add conditional host whitelist middleware based on SSL configuration"
This reverts commit 968104c6f4.
---------
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
|
2025-09-04 20:52:23 +03:00 |
|
Spappz
|
a5dc505e61
|
add 404 error-handling to server
This is all that seems necessary according to Express? Admittedly my first time using it.
https://expressjs.com/en/starter/faq.html#how-do-i-handle-404-responses
|
2025-01-25 03:42:04 +00:00 |
|
Spappz
|
538d66191e
|
add 401 error page for basicAuth mode
Most modern browsers don't actually show users 401 responses, but it doesn't hurt to have it in there anyway ¯\_(ツ)_/¯
|
2025-01-25 03:40:47 +00:00 |
|
Spappz
|
928487985d
|
defer 403 HTML to file
|
2025-01-25 03:38:52 +00:00 |
|