drewzboto / grunt-connect-proxy

Grunt Connect support for proxying API calls during development
MIT License
424 stars 122 forks source link

Add headers from proxy config to WebSocket requests #136

Open Aletheios opened 8 years ago

Aletheios commented 8 years ago

For my project I have to add an additional header (authorization) to proxied WebSocket requests and noticed that it didn't seem to be supported yet. Usage:

{
    context: '/foobar',
    host: 'host',
    port: 1234,
    headers: {
        Authorization: 'foobar'
    },
    ws: true
}
sebastienroul commented 3 years ago

@Aletheios , I sent pull request https://github.com/drewzboto/grunt-connect-proxy/pull/149 which fix the problem, like it :)