I am trying to implement custom authorization of requests, before sending them to microservices, I am using Cloudflare worker scripts for the authorization and I am not able to generate the MD5 hash through worker script.
I have gone through many blogs and articles online but was not able to achieve the end result. Any help is highly appreciated.
Mentioned below is the glimpse of what I am trying to do
addEventListener('fetch', event => {
importScripts('https://cdnjs.cloudflare.com/ajax/libs/crypto-js/3.1.9-1/md5.js');
let test = CryptoJS.MD5('test').toString();
console.log(test);
event.respondWith(handleRequest(event.request))
})