# Temporary Headers

**URL:** <https://community.postman.com/t/temporary-headers/5243>\
**Category:** Help Hub\
**Tags:** header\
**Created:** [May 1, 2019, 5:03pm UTC](https://community.postman.com/t/temporary-headers/5243 "2019-05-01T17:03:16Z")\
**Posts on this page:** 16\
**Page:** 2

<div class="post-metadata">

**Author:** ![whatafuck](https://avatars.discourse-cdn.com/v4/letter/w/f0a364/32.png) [@whatafuck](https://community.postman.com/u/whatafuck)\
**Post date:** [June 10, 2019, 9:41pm UTC](https://community.postman.com/t/temporary-headers/5243/22 "2019-06-10T21:41:26Z")

</div>

Problem with wrong API key added to request solved by adding logoff just after login.

---

<div class="post-metadata">

**Author:** ![whatafuck](https://avatars.discourse-cdn.com/v4/letter/w/f0a364/32.png) [@whatafuck](https://community.postman.com/u/whatafuck)\
**Post date:** [June 10, 2019, 9:52pm UTC](https://community.postman.com/t/temporary-headers/5243/23 "2019-06-10T21:52:02Z")

</div>

hi. how about the get the same working with newman?

---

<div class="post-metadata">

**Author:** ![whatafuck](https://avatars.discourse-cdn.com/v4/letter/w/f0a364/32.png) [@whatafuck](https://community.postman.com/u/whatafuck)\
**Post date:** [July 9, 2019, 8:27pm UTC](https://community.postman.com/t/temporary-headers/5243/24 "2019-07-09T20:27:38Z")

</div>

raised - [How to stop newman from request sending if pre-request test fails](https://community.postman.com/t/how-to-stop-newman-from-request-sending-if-pre-request-test-fails/6271)

---

<div class="post-metadata">

**Author:** ![kaustavdm](https://sea2.discourse-cdn.com/getpostman/user_avatar/community.postman.com/kaustavdm/32/1778_2.png) [@kaustavdm](https://community.postman.com/u/kaustavdm)\
**Post date:** [July 11, 2019, 8:31am UTC](https://community.postman.com/t/temporary-headers/5243/25 "2019-07-11T08:31:08Z")

</div>

Cross-posting here. We are exploring handling of temporary headers in Postman.

> [@Disable Temporary Headers](https://community.postman.com/t/disable-temporary-headers/5271/14):
>
> Thanks for all the feedback on this thread. We have slotted this on our roadmap and will ship out a fix soon. We are exploring changing the name of “Temporary Headers”, which is TBH, confusing to many. We will add some docs to explain why these headers are needed and added by Postman. Besides that, we are also exploring introducing a settings option to disable adding these headers. It’s still in a design prototype phase, so I don’t have anything concrete to show right now, but I will let you p…

---

<div class="post-metadata">

**Author:** ![fkhaller](https://avatars.discourse-cdn.com/v4/letter/f/d78d45/32.png) [@fkhaller](https://community.postman.com/u/fkhaller)\
**Post date:** [July 23, 2019, 5:24pm UTC](https://community.postman.com/t/temporary-headers/5243/26 "2019-07-23T17:24:58Z")

</div>

If you put an empty header with the same name postman will not auto-generate the header. I’m sure this does not solve all issue but it helped me troubleshoot my problem.

---

<div class="post-metadata">

**Author:** ![DoYouEvenCurl](https://avatars.discourse-cdn.com/v4/letter/d/3da27b/32.png) [@DoYouEvenCurl](https://community.postman.com/u/DoYouEvenCurl)\
**Post date:** [July 23, 2019, 9:37pm UTC](https://community.postman.com/t/temporary-headers/5243/27 "2019-07-23T21:37:15Z")

</div>

@ [kaustavdm](https://community.postman.com/u/kaustavdm)  
@ [saswatds](https://community.postman.com/u/saswatds)  
I see that the new ‘Experimental Codegen mode’ has been added and indeed does remove those temporary headers when looking at the ‘cURL’ format of the ‘Code’. With that being said, there are now backward slashes that encapsulate each field within the payload. This leads to the original problem of having to curtail this data. Is it possible to have these slashes removed as they only detract from the Code view. The old cURL Code view before the temporary headers were exposed was excellent and didn’t require any curtailing.

---

<div class="post-metadata">

**Author:** ![danny-dainton](https://sea2.discourse-cdn.com/getpostman/user_avatar/community.postman.com/danny-dainton/32/29401_2.png) [@danny-dainton](https://community.postman.com/u/danny-dainton)\
**Post date:** [July 23, 2019, 9:47pm UTC](https://community.postman.com/t/temporary-headers/5243/28 "2019-07-23T21:47:11Z")

</div>

Hey @DoYouEvenCurl

For me that’s a different issue that you’re facing than the Temporary Headers showing in the UI and is going to take this thread in a different direction.

Could you create a new topic with the details of what you’re seeing / hope to see happening please.

---

<div class="post-metadata">

**Author:** ![babusomasundaram](https://avatars.discourse-cdn.com/v4/letter/b/f0a364/32.png) [@babusomasundaram](https://community.postman.com/u/babusomasundaram)\
**Post date:** [July 23, 2019, 10:06pm UTC](https://community.postman.com/t/temporary-headers/5243/29 "2019-07-23T22:06:28Z")

</div>

I’m using AWS Cognito. The OAuth2 adds the Authorization header as the value starting with “Bearer”.

 ![Annotation%202019-07-24%20033135](https://us1.discourse-cdn.com/getpostman/original/3X/4/0/40a58ad6baac4fe08e14aa5875cec3477177c499.png) This results in 401 as Cognito just expects the token. What a bummer!!

---

<div class="post-metadata">

**Author:** ![fkhaller](https://avatars.discourse-cdn.com/v4/letter/f/d78d45/32.png) [@fkhaller](https://community.postman.com/u/fkhaller)\
**Post date:** [July 30, 2019, 6:42pm UTC](https://community.postman.com/t/temporary-headers/5243/30 "2019-07-30T18:42:46Z")

</div>

@babusomasundaram  
copy your token and manually create a header called Authorization. This should override the Authorization token. You can disable it if you need a new token generated and repeat this copy and paste step.

---

<div class="post-metadata">

**Author:** ![babusomasundaram](https://avatars.discourse-cdn.com/v4/letter/b/f0a364/32.png) [@babusomasundaram](https://community.postman.com/u/babusomasundaram)\
**Post date:** [July 30, 2019, 8:17pm UTC](https://community.postman.com/t/temporary-headers/5243/31 "2019-07-30T20:17:01Z")

</div>

@fkhaller Are you sure? I had already tried it. This doesn’t override the Temporary headers.

---

<div class="post-metadata">

**Author:** ![fkhaller](https://avatars.discourse-cdn.com/v4/letter/f/d78d45/32.png) [@fkhaller](https://community.postman.com/u/fkhaller)\
**Post date:** [July 30, 2019, 8:19pm UTC](https://community.postman.com/t/temporary-headers/5243/32 "2019-07-30T20:19:33Z")

</div>

@babusomasundaram  
It has worked for me for User-Agent maybe not all of the headers work this way.

---

<div class="post-metadata">

**Author:** ![dvaliga](https://avatars.discourse-cdn.com/v4/letter/d/a5b964/32.png) [@dvaliga](https://community.postman.com/u/dvaliga)\
**Post date:** [December 18, 2019, 5:40pm UTC](https://community.postman.com/t/temporary-headers/5243/33 "2019-12-18T17:40:09Z")

</div>

Has anything been done to resolve this? I am on version 7.14.0 (MacOS) with the temporary headers feature. My test cases now break or are rejected by security modules (like ASM on F5). Coworkers who have NOT upgraded and are running 7.13.0 have no issues.

Here’s an example - it should be a stateless REST call that requires a bearer token and should NOT require a cookie value as this is not a browser-based request. Version 7.14.0 sends a duplicate bearer token and a cookie value among other headers.

 ![image](https://us1.discourse-cdn.com/getpostman/original/3X/8/8/880691eae8a1d3dbd0cf5eba5244c4c6ea988f36.png)

Where is it getting the other Bearer token from? Why a cookie value? Why is it sending headers I don’t want sent? And as you can tell from the image above, the Bearer token being sent uses a global replacement value. If I change the token, I end up with a request that tries to send a duplicate Authorization header, one with the correct token, one with the old ‘temporary header’ token (cached?) that I can’t control. This causes all kinds of security problems.

To further illustrate, here is an example of the generated Curl call from 7.13.0 and the same one from 7.14.0. The requests are identical and the only change was upgrading Postman. See how it has changed and is now no longer valid:

7.13.0 (works!)

 ![image](https://us1.discourse-cdn.com/getpostman/original/3X/1/1/1197257c438d8c9ac812cba43c4d15c0446fd6a8.png)

7.14.0 (fails!)

 ![image](https://us1.discourse-cdn.com/getpostman/original/2X/e/e093a28af6ea9c5eda8e2de3d1cb5738bbaeb175.png)

It makes no sense to my why users can no longer control the headers being sent - and in this case it makes Postman unusable as a testing tool. Posts above have stated that Postman is just showing headers that were always sent before, but my experience so far has shown that not to be true. Am I doing something wrong or is there a way to clear the temporary header values? Otherwise I can no longer continue to use Postman.

---

<div class="post-metadata">

**Author:** ![majuarcas](https://avatars.discourse-cdn.com/v4/letter/m/59ef9b/32.png) [@majuarcas](https://community.postman.com/u/majuarcas)\
**Post date:** [December 22, 2019, 3:44am UTC](https://community.postman.com/t/temporary-headers/5243/34 "2019-12-22T03:44:08Z")

</div>

I want to do some performance testting using JMeter, while I record the script in Jmeter and I reply it, it works until the Postman-Token expires (5 seconds) after this the script in Jmeter is useless, how the Postman-Token is generated?  
Notice: I am able to get all the other parameters generated properly, example sessionId, Bearer Token, etc, it is just the Postman-Token which is bloking me… Please advise.  
Thanks Mauro

 ![postman-token](https://us1.discourse-cdn.com/getpostman/original/3X/4/b/4bd95bef947ee4d26eda0f21bc3d766ec63f92fb.jpeg)

---

<div class="post-metadata">

**Author:** ![tmccann](https://sea2.discourse-cdn.com/getpostman/user_avatar/community.postman.com/tmccann/32/3550_2.png) [@tmccann](https://community.postman.com/u/tmccann)\
**Post date:** [January 22, 2020, 7:48pm UTC](https://community.postman.com/t/temporary-headers/5243/35 "2020-01-22T19:48:36Z")

</div>

Hey everyone.  
Please have a look at this change we just released in our Canary builds.

We would love any feedback you have on it.

> [@Live Preview on Canary](https://community.postman.com/t/live-preview-on-canary/10276):
>
> Hello Post People! So we have another awesome Canary release we wanted to let you know about. So what’s new? Postman makes it easy to make requests by adding headers that are needed in general and ones that browsers and other popular http clients send. Last year, we made them visible in the form of temporary headers. However, we heard from you, our users, that this had created some confusion. So we are introducing something to help with that, known as Live Preview. We will now show you hea…

---

<div class="post-metadata">

**Author:** ![arlem](https://sea2.discourse-cdn.com/getpostman/user_avatar/community.postman.com/arlem/32/3078_2.png) [@arlem](https://community.postman.com/u/arlem)\
**Post date:** [March 24, 2020, 10:50am UTC](https://community.postman.com/t/temporary-headers/5243/36 "2020-03-24T10:50:34Z")

</div>

Hey everyone 👋

Live preview is now generally available! If you’ve already updated to the latest version you may have noticed some changes to how headers are displayed or added. Read more about it here:

> [@Live Preview is out! rocket](https://community.postman.com/t/live-preview-is-out/11497):
>
> Hey folks! wave After spending [a few weeks in Canary](https://community.postman.com/t/live-preview-on-canary/10276) to gather user feedback, Live Preview is now generally available from Postman 7.21.0! You can download the latest version of the app [here](https://www.postman.com/downloads/). Live Preview brings a bunch of new features: All components of your requests (headers, query and form parameters) are updated as you edit your request! This means no more clicking on the “Preview” button when adding an Authorization header. You can now see all headers, including the auto-generated one…

---

<div class="post-metadata">

**Author:** ![danny-dainton](https://sea2.discourse-cdn.com/getpostman/user_avatar/community.postman.com/danny-dainton/32/29401_2.png) [@danny-dainton](https://community.postman.com/u/danny-dainton)\
**Post date:** [August 25, 2023, 9:58am UTC](https://community.postman.com/t/temporary-headers/5243/37 "2023-08-25T09:58:02Z")

</div>

Closed on August 25, 2023, 9:58am UTC



[Previous page](https://community.postman.com/t/temporary-headers/5243.md?page=1)
