# Add a custom request header on an Integration Request

**URL:** <https://forum.serverless.com/t/add-a-custom-request-header-on-an-integration-request/3604>\
**Category:** Serverless Framework\
**Created:** [January 25, 2018, 10:53pm UTC](https://forum.serverless.com/t/add-a-custom-request-header-on-an-integration-request/3604 "2018-01-25T22:53:47Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![diego1686](https://yyz2.discourse-cdn.com/flex036/user_avatar/forum.serverless.com/diego1686/32/1558_2.png) [@diego1686](https://forum.serverless.com/u/diego1686)\
**Post date:** [January 25, 2018, 10:53pm UTC](https://forum.serverless.com/t/add-a-custom-request-header-on-an-integration-request/3604/1 "2018-01-25T22:53:47Z")

</div>

Hi all! I need to add a custom request header on a proxy resource. When I GET to /authentication/login, I need to be redirected to [https://url.to.login](https://url.to.login) with a custom request header.

This is my yml file:

```
Login:
  handler: login
  events:
    - http:
        path: /authentication/login
        method: get
        integration: http-proxy
        request:
          uri: https://url.to.login
          method: get

```

I can do that from the AWS console editing the Integration Request and it works:

1. Click on Integration Request  

2. On the Edit form, I can add the Request Header

How can I do this from Serverless? Thanks

---

<div class="post-metadata">

**Author:** ![iamroberthanson](https://avatars.discourse-cdn.com/v4/letter/i/4da419/32.png) [@iamroberthanson](https://forum.serverless.com/u/iamroberthanson)\
**Post date:** [November 13, 2019, 1:43pm UTC](https://forum.serverless.com/t/add-a-custom-request-header-on-an-integration-request/3604/2 "2019-11-13T13:43:43Z")

</div>

@diego1686 did you ever find a solution to this?

Thanks.

---

<div class="post-metadata">

**Author:** ![DrColza](https://yyz2.discourse-cdn.com/flex036/user_avatar/forum.serverless.com/drcolza/32/2838_2.png) [@DrColza](https://forum.serverless.com/u/DrColza)\
**Post date:** [January 13, 2020, 12:28pm UTC](https://forum.serverless.com/t/add-a-custom-request-header-on-an-integration-request/3604/3 "2020-01-13T12:28:21Z")

</div>

@iamroberthanson  
If you want to inject a header into a proxied request you can do this:

```
 Login:
  handler: login
  events:
    - http:
        path: /authentication/login
        method: get
        integration: http-proxy
        request:
          uri: https://url.to.login
          parameters:
            headers:
              HEADER_NAME: "INSERT HEADER VALUE HERE"
```
