Passing a secret header to downstream nodes

in #steem17 hours ago

Passing a secret header to downstream nodes

PR: https://github.com/DoctorLai/steem-proxy-cloudflare/pull/10

image.png

When proxying requests, api2.steemyy.com injects a shared-secret header so downstream nodes can identify trusted traffic and apply elevated (or exempt) rate-limit policies.

export const DOWNSTREAM_HEADERS = Object.freeze({
  "https://api.steemit.com": {
    "X-Edge-Key": "static_secret_value_here",
  },
  "https://api2.justyy.com": {
    "X-Edge-Key": "another_static_secret_value",
  },
});

Steem to the Moon🚀!

Support me, thank you!

Why you should vote me? My contributions
Please vote me as a witness or set me as a proxy via https://steemitwallet.com/~witnesses

image.png