Stremio / stremio-bugs

🐛 Post bug reports in Issues here
59 stars 9 forks source link

Stremio expect case-sensitive headers from add-on response #769

Open mhdzumair opened 2 months ago

mhdzumair commented 2 months ago

Describe the bug Stremio expect case-sensitive headers from add-on response. The add-on response contain all lower case headers. However, the stremio shows the data.

To Reproduce Steps to reproduce the behavior:

  1. Install MediaFusion from this link directly pre-configured link

Expected behavior According to Mozilla Doc headers are case-insensitive. So im expecting it should work without case-sensitive validation.

Logs

[libmpv_render] Loading failed.
js: TypeError: Failed to fetch
js: Uncaught (in promise) TypeError: Failed to fetch
js: Access to fetch at 'https://mediafusion.elfhosted.com/89c3-WIqXfxkz6nngKah88oIjC5Gy__O-eVl1CpTPHc4_ihUdkjVrrb_YIgHWyfaMdAlO6QDW4ykSyE-6zOcKvY5kqxcbpHIKdvS7isfLx6qvsT9Kt1JMV5vAxLHuFcmxy-c7mcvEC84Vr-1x9V06w==/catalog/movie/english_hdrip.json' from origin 'https://app.strem.io' has been blocked by CORS policy: 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.

Desktop (please complete the following information):

Additional context Add-on response headers:

HTTP/2 200 OK
date: Fri, 03 May 2024 17:29:26 GMT
content-type: application/json
access-control-allow-headers: *
access-control-allow-origin: *
cache-control: max-age=3600, stale-while-revalidate=3600, stale-if-error=604800, public
x-process-time: 0.0086 seconds
cf-cache-status: DYNAMIC
content-encoding: br
X-Firefox-Spdy: h2