Fixed a critical issue where YouTube videos and other embedded content (Twitter/X, Vimeo) were failing to load in the production desktop app with Error 153. This issue only affected the production builds of the desktop application, while the development environment continued to work normally.
The root cause was that production builds were loading the app using the file:// protocol, which has strict security restrictions that block cross-origin iframe content like YouTube embeds. The solution implements a local HTTP server that serves the production app from http://127.0.0.1 instead of file://, eliminating the cross-origin restrictions while maintaining security. This approach is widely used by Electron applications to support embedded content.
The fix ensures that all embedded media - including YouTube videos, Twitter/X posts, and Vimeo videos - now load correctly in production builds. Additionally, iframe attributes have been updated to include proper security policies (referrerPolicy) and permissions required by these platforms.