dlundquist / sniproxy

Proxies incoming HTTP and TLS connections based on the hostname contained in the initial request of the TCP session.
BSD 2-Clause "Simplified" License
2.53k stars 397 forks source link

ab77 / netflix-proxy #384

Open drtiwarir opened 2 years ago

drtiwarir commented 2 years ago

I have been using this proxy for a while and it worked as a charm I use it to watch streams from India in Australia. My devices are MacMini and Nvidia Shield tv Since 2-3 weeks few of the websites are giving error, please have a look

1)Failed to load resource: the server responded with a status of 404 () 2)Access to fetch at 'https://uapi.zee5.com/v1/user/datacollection' from origin 'https://www.zee5.com' has been blocked by CORS policy: Response to preflight request doesn't pass access control check: No 'Access-Control-Allow-Origin' header is present on the requested resource. If an opaque response serves your needs, set the request's mode to 'no-cors' to fetch the resource with CORS disabled. 3)CleverTap error: Age value should be a number. This property has been ignored 4)net::ERR_SSL_VERSION_OR_CIPHER_MISMATCH

How can we fix this issue ??? Please advice Regards

asuna commented 2 years ago

Also has CORS issue on KKTV, but works after use charles or Fiddler SSL proxying.

Access to XMLHttpRequest at 'https://api-lb.kktv.me/v3/heartbeat' from origin 'https://www.kktv.me' has been blocked by CORS policy: Response to preflight request doesn't pass access control check: No 'Access-Control-Allow-Origin' header is present on the requested resource.

drtiwarir commented 2 years ago

Hi Asuna Can you tell me more about Charles or Fiddler SSL proxying Can we add this to netflix-proxy server ? I am running it on Ubuntu 20.04

Thanks

asuna commented 2 years ago

Charles or Fiddler should be used on your computer not netflix-proxy server. You need to enable "windows proxy", "SSL proxying", and install ca certificate, you can follow the documentation below: https://help.testlio.com/en/articles/1145689-charles-proxy-guide-for-web-on-your-computer

PS: this is only a workaround, CORS issue should be fixed by sniproxy.

drtiwarir commented 2 years ago

Thanks I agree to your point that "CORS issue should be fixed by Sniproxy" But Dustin Lundquist who made this fantastic stuff has now abandoned the project and no more updating it. Hope somebody takes it up and continues to develop this concept. I am looking at HAproxy, hoping to make it work.