TypeError: Cannot read properties of undefined (reading 'indexOf') at handleRequest (worker.js:26:77) at worker.js:3:5