I am currently working on a Chrome Extension which uses the Microsoft Translator API. I keep getting a 405000 error on it, so I decided to create a much simpler translate program - a webpage that simply translates a given word - in order to see if it was the extension that was causing the error.
Spoiler, it wasn't. I got the exact same error on the basic program. I have no idea what is causing this error as I know the endpoint is correct and that a POST method is required for this. I've posted code for the request method below. Any help would be much appreciated.