Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Can you statically set a Header and it's value when setting up an HTTP Proxy using AWS Api Gateway endpoint?

I am creating an http proxy using AWS Api Gateway. I would like to hard code some of the headers and their values to be forwarded as part of the request. I thought this might be possible in the 'Integration Request' portion of the proxy setup, but I can't seem to figure it out.

I'm trying to pass an Authorization header with an oauth key. I don't want to share this key with clients that have access to this service, since I will only provide a subset of access to users of this specific endpoint.

like image 878
Gary Sharpe Avatar asked Jul 21 '15 00:07

Gary Sharpe


1 Answers

In the Integration Request, you can configure a static header value to be sent to the integration endpoint by putting the value inside of single quotes, e.g. 'my_static_header_value'.

like image 197
Bryce Thomas Avatar answered Oct 26 '22 23:10

Bryce Thomas