Hey Razai,I used a PHP script and was able to get an auth token by
setting the mentioned headers. You'll need to check with your dev team
to troubleshoot the custom jQuery script by comparing both the requests
to identify which parameter or header is missing or wrongly set.