# HttpApi - How to remove the Authentication header

**URL:** <https://forum.ansible.com/t/httpapi-how-to-remove-the-authentication-header/43153>\
**Category:** Get Help\
**Tags:** dev\
**Created:** [June 4, 2025, 11:12am UTC](https://forum.ansible.com/t/httpapi-how-to-remove-the-authentication-header/43153 "2025-06-04T11:12:17Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![mixx](https://sea1.discourse-cdn.com/ansible/user_avatar/forum.ansible.com/mixx/32/8450_2.png) [@mixx](https://forum.ansible.com/u/mixx)\
**Post date:** [June 4, 2025, 11:12am UTC](https://forum.ansible.com/t/httpapi-how-to-remove-the-authentication-header/43153/1 "2025-06-04T11:12:17Z")

</div>

Hi guys,

I’m trying to write my first own HttpApi plugin for personal use.  
I implemented the Login method as this API needs to authenticate first against a specific URL.

All looks well in the code but I keep getting 401 Unauthorized. When checking the packets with wireshark, the 401 packet shows an error message “Unsupported Authorization Header”

I’ve tried to modify the send\_request method by adding my own headers, adding the force\_basic\_auth to false (as I saw that mentioned in the send method of Ansible HttpApi itself)

Is there anything possible, other than requesting the API Builder to ignore the auth header itself?
