Problem: I'm trying to deploy my Node.js Stremio addon to Vercel, which is supposed to return some M3U8 stream links for movies.
Issue:
When I run the addon locally, I send a request to the embed video player URL, and I can successfully get the working M3U8 link from the unpacked JS code. However, when I deploy it to Vercel, the same process doesn’t work. I do get the M3U8 link, but it returns a 403 Forbidden error from the Nginx server. Question: Is there any way to bypass this issue and make it work in the deployed version?
I'm using axios to make a request and unpacker to retrive m3u8 link
const streamProviderUrl = "https://ryderjet.com/embed/7s09e8rezgsy";
const { data: streamProviderData } = await axios.get(streamProviderUrl);
const unpacked = unpacker.unpack(streamProviderData);
const streamUrlMatch = unpacked.match(/file:"([^"]+)"/i);
const streamUrl = streamUrlMatch ? streamUrlMatch[1] : null;
Example of working one:
Example of non working one:
Thanks in advance! :)
