chimurai / http-proxy-middleware

:zap: The one-liner node.js http-proxy middleware for connect, express, next.js and more
MIT License
10.7k stars 834 forks source link

proxying vimeo player redirects to vimeo home page #797

Closed etizaz98 closed 2 years ago

etizaz98 commented 2 years ago

Checks

Describe the bug (be clear and concise)

have the embed links for vimeoplayer i want to use my express server as proxy. I have added the endpoint which bascially proxies to vimeo embed link. My code is working fine on my local machine but on server sometimes it redirects to vimeo home page(vimeo.com).I am using http-proxy-middleware npm package and have done docker deployment using kubernetes on server. kindly let me know what steps can i take to stop it from redirecting and my proxy behave as it is intended to behave

Code is attached

app.use(/test-vimeo, proxy({target: https://player.vimeo.com/video/709386126?h=21417feddb,changeOrigin: true}))

Step-by-step reproduction instructions

run the proxy in docker

Expected behavior (be clear and concise)

it should proxy vimeo player link

How is http-proxy-middleware used in your project?

npm ls http-proxy-middleware

What http-proxy-middleware configuration are you using?

i am using version 2.0.0

What OS/version and node/version are you seeing the problem?

I am using Mac OS

Additional context (optional)

No response