# Custom Header Support

**URL:** <https://community.shotgridsoftware.com/t/custom-header-support/9244>\
**Category:** Webhooks\
**Tags:** bug\
**Created:** [July 3, 2020, 9:00am UTC](https://community.shotgridsoftware.com/t/custom-header-support/9244 "2020-07-03T09:00:41Z")\
**Posts on this page:** 7\
**Page:** 1

<div class="post-metadata">

**Author:** ![koya\_iwamura](https://sea1.discourse-cdn.com/shotgunsoftware/user_avatar/community.shotgridsoftware.com/koya_iwamura/32/2966_2.png) [@koya\_iwamura](https://community.shotgridsoftware.com/u/koya_iwamura)\
**Post date:** [July 3, 2020, 9:00am UTC](https://community.shotgridsoftware.com/t/custom-header-support/9244/1 "2020-07-03T09:00:41Z")

</div>

Does Shotgun Webhooks development team plan to support custom headers?  
Our team needs to authenticate users (in this case, Shotgun Webhook) who come to the AWS API Gateway with x-api-key header.  
Ref. [https://docs.aws.amazon.com/apigateway/latest/developerguide/api-gateway-api-key-source.html](https://docs.aws.amazon.com/apigateway/latest/developerguide/api-gateway-api-key-source.html)

---

<div class="post-metadata">

**Author:** ![Ben\_xzj](https://sea1.discourse-cdn.com/shotgunsoftware/user_avatar/community.shotgridsoftware.com/ben_xzj/32/289_2.png) [@Ben\_xzj](https://community.shotgridsoftware.com/u/Ben_xzj)\
**Post date:** [July 6, 2020, 6:04am UTC](https://community.shotgridsoftware.com/t/custom-header-support/9244/3 "2020-07-06T06:04:23Z")

</div>

Hi @koya_iwamura,

Welcome to the community and thanks for posting! Let me check it out with the webhooks experts.

---

<div class="post-metadata">

**Author:** ![daigles](https://sea1.discourse-cdn.com/shotgunsoftware/user_avatar/community.shotgridsoftware.com/daigles/32/1072_2.png) [@daigles](https://community.shotgridsoftware.com/u/daigles)\
**Post date:** [July 7, 2020, 12:01pm UTC](https://community.shotgridsoftware.com/t/custom-header-support/9244/5 "2020-07-07T12:01:16Z")

</div>

Hi @koya_iwamura,  
Thank you very much for the request. We had no concrete plans to support custom headers but your use case makes total sense.

I have opened a ticket for this.

---

<div class="post-metadata">

**Author:** ![philip.scadding](https://sea1.discourse-cdn.com/shotgunsoftware/user_avatar/community.shotgridsoftware.com/philip.scadding/32/30_2.png) [@philip.scadding](https://community.shotgridsoftware.com/u/philip.scadding)\
**Post date:** [September 18, 2020, 9:29am UTC](https://community.shotgridsoftware.com/t/custom-header-support/9244/7 "2020-09-18T09:29:38Z")

</div>

Hi @koya_iwamura, I was looking into the custom headers suggestion, however, the doc you sent contains two different approaches to providing the authentication, is it possible that you could use the `AUTHORIZER` method instead?  
I’ll admit I’ve not tried that myself self so I don’t know how simple it is or if there are any limitations?

---

<div class="post-metadata">

**Author:** ![koya\_iwamura](https://sea1.discourse-cdn.com/shotgunsoftware/user_avatar/community.shotgridsoftware.com/koya_iwamura/32/2966_2.png) [@koya\_iwamura](https://community.shotgridsoftware.com/u/koya_iwamura)\
**Post date:** [September 23, 2020, 2:54am UTC](https://community.shotgridsoftware.com/t/custom-header-support/9244/8 "2020-09-23T02:54:29Z")

</div>

The `AUTHORIZER` method is not suitable for Webhooks because they have to log in first to receive the token and then grant the token to make the request.  
If Webhooks can send requests with arbitrary headers except the existing ones in Webhooks, then we can handle a variety of events(including authorization) with headers in the future.

---

<div class="post-metadata">

**Author:** ![zoe.glynn](https://sea1.discourse-cdn.com/shotgunsoftware/user_avatar/community.shotgridsoftware.com/zoe.glynn/32/331_2.png) [@zoe.glynn](https://community.shotgridsoftware.com/u/zoe.glynn)\
**Post date:** [December 18, 2020, 8:07pm UTC](https://community.shotgridsoftware.com/t/custom-header-support/9244/11 "2020-12-18T20:07:36Z")

</div>

Wanted to provide an update that security implications were too great for us to support arbitrary custom headers. We may instead consider a more curated list.

---

<div class="post-metadata">

**Author:** ![nedwilson](https://sea1.discourse-cdn.com/shotgunsoftware/user_avatar/community.shotgridsoftware.com/nedwilson/32/679_2.png) [@nedwilson](https://community.shotgridsoftware.com/u/nedwilson)\
**Post date:** [July 23, 2021, 1:24am UTC](https://community.shotgridsoftware.com/t/custom-header-support/9244/12 "2021-07-23T01:24:23Z")

</div>

+1 on this, for what it’s worth. @zoe I would mention that not allowing us to put x-api-key in the header is a rather large security issue on our end, as we have to leave our AWS API gateway endpoints pretty much wide open. I realize that we can use the secure token to validate the request, but it would be MUCH easier to let AWS do this for us and discard any requests that are not authorized. Furthermore, AWS is going to charge us for compute time here, since we are going to have to validate the request inside the Lambda function. Please implement this ASAP.
