Stremio / stremio-addon-sdk

🧙 A Node.js SDK for creating and publishing Stremio add-ons
https://www.stremio.com/addon-sdk
MIT License
656 stars 175 forks source link

proxyHeaders http/https #292

Open Loukious opened 1 month ago

Loukious commented 1 month ago

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.

jaruba commented 1 month ago

We intentionally support only HTTPS for security reasons.

Loukious commented 1 month ago

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?