Using autoIT for authentication

Hi,

I am using autoIT for authentication. It is working fine in chrome but it is failing on chrome headless.
I have implemented all the steps which are provided in docs [https://docs.katalon.com/katalon-studio/docs/using-autoit-for-authentication-in-katalon-studio.html]

Could you please advice what is the right solution on this issue?

Thank You!
Tejal