ScreenStream icon indicating copy to clipboard operation
ScreenStream copied to clipboard

Local Mode (MJPEG) but only in the Browser

Open KaiNordic opened this issue 8 months ago • 1 comments

Problem:

ScreenStream works perfectly in browser directly (http://172.20.10.2:8080) But not in embedded web applications (iframe/fetch) due to CORS blocking What we need:

CORS headers that the ScreenStream server must send:

Access-Control-Allow-Origin: * Access-Control-Allow-Methods: GET, HEAD, OPTIONS Access-Control-Allow-Headers: Content-Type, Range Access-Control-Expose-Headers: Content-Length, Content-Range, Content-Type Why this is important:

Modern web apps can only load external streams if the server allows CORS Without these headers, the browser blocks all requests from other domains This is a standard security feature of all modern browsers Feature Request:

"Please add an option in ScreenStream settings: 'Enable CORS' or 'Allow web embedding' that automatically sends these HTTP headers."

Technical Background:

The stream runs over HTTP, but web browsers block Cross-Origin requests without explicit permission from the server through CORS headers.

KaiNordic avatar Jun 13 '25 20:06 KaiNordic

Thank You for the fast reply I am following the new release and hopefully the next version will have this sorted. I am sure a lot of people will benefit from it. I really like the work you did and hope to have this application in use for much longer.

KaiNordic avatar Jun 16 '25 19:06 KaiNordic

Available in Release 4.2.4

dkrivoruchko avatar Jun 25 '25 04:06 dkrivoruchko