proxy all headers in request except Authorization

This commit is contained in:
Dave Horton
2019-12-13 11:25:16 -05:00
parent 1acfb0a775
commit 45e8b8d22e
3 changed files with 5 additions and 5 deletions

View File

@@ -56,7 +56,7 @@ class CallSession extends Emitter {
const {uas, uac} = await this.srf.createB2BUA(this.req, this.res, uri, {
proxy,
headers,
proxyRequestHeaders: ['all'],
proxyRequestHeaders: ['all', '-Authorization', '-Max-Forwards'],
proxyResponseHeaders: ['all'],
localSdpB: response.sdp,
localSdpA: async(sdp, res) => {

6
package-lock.json generated
View File

@@ -734,9 +734,9 @@
}
},
"drachtio-srf": {
"version": "4.4.25",
"resolved": "https://registry.npmjs.org/drachtio-srf/-/drachtio-srf-4.4.25.tgz",
"integrity": "sha512-y2RcrSCVlADlmgwas8IKPWUR9SGXySma0cmgZ/Y9VrIzlchyoFagCf86gcRGHGp0eJKQdHLgrjf8zN5D6CuyBA==",
"version": "4.4.26",
"resolved": "https://registry.npmjs.org/drachtio-srf/-/drachtio-srf-4.4.26.tgz",
"integrity": "sha512-viEzAhJ2JenpUstXWvHXGpjZckcyfciadD1fG67JxmyvgDYn6RKNeHk/LPjeJUdRNg5z8yS6Lgx4jCtuBP1DJQ==",
"requires": {
"async": "^1.4.2",
"debug": "^3.1.0",

View File

@@ -22,7 +22,7 @@
"debug": "^4.1.1",
"drachtio-fn-b2b-sugar": "0.0.12",
"drachtio-http-authenticator": "^0.1.7",
"drachtio-srf": "^4.4.25",
"drachtio-srf": "^4.4.26",
"jambonz-db-helpers": "^0.1.2",
"pino": "^5.14.0",
"rtpengine-client": "^0.0.8"