Skip to content
Michael VERGOZ edited this page Jun 17, 2014 · 1 revision
pipeline: {
	pipetest: [
		/* set & hide request headers */
		['headers', { 
			set: { 
				"X-Header-One": 'Alasklikeuflux',
			},
			hide: [
				'X-FRAME-options'
			]
		} ],
		['cache', { }],
		['proxyPass', { mode: 'host', timeout: 10 }]
	],
},

The "headers" opcode is used to manipulate the request and response headers.It works for reverse & forward proxy

It can set or hide headers in both request & response.

By default it acts on the response by defining options you can work on request. See options below.

Note: gatejs headers searching is case insensitive

  • request : is a boolean used to activate header manipulation on request, by default is false which means it works on reponses
  • set : is a Javascript object used to set new headers
  • hide : is a Javascript array used to disable or hide headers
Clone this wiki locally