# Remove authorization header

**URL:** <https://community.f5.com/t/remove-authorization-header/54287>\
**Category:** Technical Forums\
**Tags:** big-ip-access-policy-manager-apm, irules, ltm, application-delivery\
**Created:** [December 10, 2018, 10:33am UTC](https://community.f5.com/t/remove-authorization-header/54287 "2018-12-10T10:33:42Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![mf5](https://avatars.discourse-cdn.com/v4/letter/m/7993a0/32.png) [@mf5](https://community.f5.com/u/mf5)\
**Post date:** [December 10, 2018, 10:33am UTC](https://community.f5.com/t/remove-authorization-header/54287/1 "2018-12-10T10:33:42Z")

</div>

Hello guys,

we have an application using APM+LTM websso with basic http authentication, we want to remove http authorization header after the first logon.

Thank You

---

<div class="post-metadata">

**Author:** ![John\_Huttley](https://d1p9zq3aats0t8.cloudfront.net/user_avatar/community.f5.com/john_huttley/32/16020_2.png) [@John\_Huttley](https://community.f5.com/u/John_Huttley)\
**Post date:** [December 25, 2018, 9:52pm UTC](https://community.f5.com/t/remove-authorization-header/54287/2 "2018-12-25T21:52:45Z")

</div>

Hi,

You would expect that after basic succeeds, the server sets a session cookie to authenticate subsequent requests.

Basic auth is just a header

Authorization: Basic QWxhZGRpbjpPcGVuU2VzYW1l

so you could check for the existance of a session cookie and then

HTTP::header remove “Authorization”

> **[DevCentral - An F5 Technical Community](https://community.f5.com/)**
>
> DevCentral is an online technical community where engineers and practitioners collaborate, share knowledge, and solve problems related to F5 technologies and industry trends.

It does seem to be an odd thing to do since the browser should not send “Authorization” unless asked by the server sending

WWW-Authenticate

> **[Basic access authentication](https://en.wikipedia.org/wiki/Basic_access_authentication)**
>
> In the context of an HTTP transaction, basic access authentication is a method for an HTTP user agent (e.g. a web browser) to provide a user name and password when making a request. In basic HTTP authentication, a request contains a header field in the form of Authorization: Basic \<credentials\>, where \<credentials\> is the Base64 encoding of user name and password joined by a single colon :. It was originally implemented by Ari Luotonen at CERN in 1993 and defined in the HTTP 1.0 specification in ...

So I think you will break things.

-John
