# Stop Postman from replacing header set in pre-request Script

**URL:** <https://community.postman.com/t/stop-postman-from-replacing-header-set-in-pre-request-script/7786>\
**Category:** Help Hub\
**Tags:** collections, authentication\
**Created:** [September 13, 2019, 3:21pm UTC](https://community.postman.com/t/stop-postman-from-replacing-header-set-in-pre-request-script/7786 "2019-09-13T15:21:10Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![nico](https://sea2.discourse-cdn.com/getpostman/user_avatar/community.postman.com/nico/32/2775_2.png) [@nico](https://community.postman.com/u/nico)\
**Post date:** [September 13, 2019, 3:21pm UTC](https://community.postman.com/t/stop-postman-from-replacing-header-set-in-pre-request-script/7786/1 "2019-09-13T15:21:10Z")

</div>

Hi everyone, this is my first time writing here. I am getting the hang of Postman, but ran into the following snag while trying to streamline the Authorization process. Any advice much appreciated. Thanks !

**Describe the bug**  
Postman removes headers/params from request after OAuth2 Authorization

**To Reproduce**  
Steps to reproduce the behaviour:

1. Go to Authorization tab, click new access token, and request a token

2. I am using this pre-request Script:

3. When finally we make the API request, Postman replaces the header that was set in pre-request Script and puts the original access token back into the header

Is there any way to tell Postman not to replace the header?

**Expected behaviour**  
Hoped Postman would leave the pre-request script headers alone, so the new access token would appear in the header.

**Screenshots**

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

**App information:**

- App Type [e.g. Chrome App, Native App]
- Postman Version [e.g. 6.0.1]
- OS: [e.g. macOS High Sierra 10.13.2]
