04.10.2021, 06:41
I've tested your code and there's Cloudflare's 1020 "Access Denied" error. I've tried using different user agent headers but the request is still blocked. I'm not sure whether it is possible to access the authentication using a script now. There can also be a location-based blocking. You can try adding the user-agent header after content-type and check yourself:
Code:
['content-type'] = 'application/json',
['user-agent'] = 'Mozilla/5.0',