Open ghost opened 8 years ago
I have a problem with proxy configuration. Not matter what I cannot change request headers. Request if always send with original headers.
// Connect task connect: { server: { options: { debug: true, protocol: '<%= settings.server.protocol %>', hostname: '<%= settings.server.host %>', port: '<%= settings.server.port %>', open: '<%= settings.server.protocol %>://<%= settings.server.host %>:<%= settings.server.port %>', middleware: function(connect, options, defaultMiddleware) { var proxy = require('grunt-connect-proxy/lib/utils').proxyRequest; return [proxy].concat(defaultMiddleware); } }, proxies: [{ context: ['/test1', '/test2'], host: 'test.something.com', headers: { Host: 'test.something.com' } }] } }
I have a problem with proxy configuration. Not matter what I cannot change request headers. Request if always send with original headers.