Home
Support Forums

X-nf-sign header missing

I am trying to setup some traffic to proxy through to my backend API in AWS.

I have setup the following proxy rule:
https://lifedatabase.netlify.app/api/echohttp://lifedatabase-822610598.us-west-2.elb.amazonaws.com/echo

Using the following redirect configuration:

[[redirects]]
  from = "/api/*"
  to = "http://lifedatabase-822610598.us-west-2.elb.amazonaws.com/:splat"
  status = 200
  force = true # COMMENT: ensure that we always redirect
  signed = "API_SIGNATURE_TOKEN_PLACEHOLDER"

My backend server gets many x-nf-* headers but doesn’t seem to get the x-nf-sign header as documented here: Rewrites and proxies | Netlify Docs

Visiting this url: https://lifedatabase.netlify.app/api/echo will return the headers received.

I understand I still need to replace the token placeholder but I think this should work as is.

Hi @adbrowne,

What happens when you add that variable and try?

I’d assume that since the variable returns undefined, there’s an error in signing the token which is why it might fail.