You will need to apply the method transform middleware to the rewritten endpoint, i.e. “/anything” due to the middleware order of execution: //tyk.io/docs/plugins/supported-languages/javascript-middleware/
I can confirm that this is working on Cloud, let me know if you have any other questions
-Luan