stremio-addon-sdk icon indicating copy to clipboard operation
stremio-addon-sdk copied to clipboard

proxyHeaders http/https

Open Loukious opened this issue 1 year ago • 2 comments

Currently proxyHeaders works only when you use https. Using http will cause a server error. This took me a while to debug as the error message didn't really specify what went wrong. This issue is easily fixed by using https. But what if the server doesn't support https? In my case I ran into an issue where the server does some redirects to another url and the said url is http (although it supports https, they only wrote the http version in the redirect header).

Is there anyway to fix this? Either by you fixing the issue with the http servers or by providing a way to automatically always upgrade to https.

Loukious avatar Aug 03 '24 19:08 Loukious

We intentionally support only HTTPS for security reasons.

jaruba avatar Aug 03 '24 21:08 jaruba

We intentionally support only HTTPS for security reasons.

Should probably update the docs to state that for the proxyHeaders. Because http streams seems to work fine without proxyHeaders. Any suggestion for the redirect thing? Should I simply send a get request to find the redirect url and forward that instead to the users?

Loukious avatar Aug 04 '24 01:08 Loukious

Should I simply send a get request to find the redirect url and forward that instead to the users? that will be a good way to handle it imo.

dexter21767-dev avatar Feb 13 '25 17:02 dexter21767-dev