express-http-proxy
express-http-proxy copied to clipboard
A quick question
Hi there! I'm trying to see if you can use the proxy to forward it to YouTube.com, but nothing appears to be loading. Here's my current code:
app.use('/proxy', proxy('https://www.youtube.com/watch?v=6H_9l9N3IXU', {
https: true,
userResHeaderDecorator(headers, userReq, userRes, proxyReq, proxyRes) {
// recieves an Object of headers, returns an Object of headers.
return headers;
}
}));
All that appears is this
Is there a specific header that YouTube looks for that knows that it's being given through a proxy? Thanks