# Headers are being restored even after using disableAutoReferer in chaining

**URL:** <https://community.gatling.io/t/headers-are-being-restored-even-after-using-disableautoreferer-in-chaining/3710>\
**Category:** Gatling (Open-Source)\
**Created:** [May 4, 2017, 12:01am UTC](https://community.gatling.io/t/headers-are-being-restored-even-after-using-disableautoreferer-in-chaining/3710 "2017-05-04T00:01:15Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![Murthy\_Gabbiti](https://avatars.discourse-cdn.com/v4/letter/m/5f9b8f/32.png) [@Murthy\_Gabbiti](https://community.gatling.io/u/Murthy_Gabbiti)\
**Post date:** [May 4, 2017, 12:01am UTC](https://community.gatling.io/t/headers-are-being-restored-even-after-using-disableautoreferer-in-chaining/3710/1 "2017-05-04T00:01:15Z")

</div>

Hi All,

I am trying to initialize headers for each request separately as my headers are different for each request, however I need to chain these requests.  
While chaining the second http request is taking the headers of previous request and are being forwarded. Do we have a solution to avoid this ?

PS: I am using disableAutoReferer in the main Http request in the class.

ex:

```auto
val httpProtocol = http.disableAutoReferer.disableCaching
 .baseURL(base_url)
 .acceptHeader("*/*")
 .acceptEncodingHeader("gzip, deflate")
 .acceptLanguageHeader("en-US,en;q=0.5")
 .connectionHeader("keep-alive")
 .doNotTrackHeader("1")
 .userAgentHeader("Mozilla/5.0 (Macintosh; Intel Mac OS X 10_12_4) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/58.0.3029.96 Safari/537.36")
 .header("Referer", base_url)

```

```auto

```

```auto
My request is as 

```

```auto

```
