Files
minisrv/zefie_wtvp_minisrv/ServiceVault/wtv-cookie/list.js
zefie 37f1ab67ad BREAKING CHANGES: (for SeCuRiTy):
By default:
- `ssid_sessions[socket.ssid]` is now `session_data`
- `require` is no longer allowed in user scripts

To access global `socket_sessions` and `ssid_sessions`, as well as `require` additional modules, you must set `privileged: true` for the specific service. See `config.json`.
2022-10-09 13:26:14 -04:00

16 lines
318 B
JavaScript

var minisrv_service_file = true;
if (socket.ssid) {
if (session_data) {
data = session_data.listCookies();
headers = "200 OK\n";
headers += "Content-Type: text/plain";
}
}
if (!headers) {
var errpage = wtvshared.doErrorPage(400)
headers = errpage[0];
data = errpage[1];
}