I would like to highlight an environment-specific issue. Currently, we have two different servers: Production and Staging.
For testing purposes, I created a new site named Authoring on the Staging server and copied all the Production code there. On the Authoring site, everything works fine — including the Media Selector, which functions correctly even with the same Production code.
However, on the Production server, the Media Selector is failing, despite having the exact same codebase. The only difference between the two environments is the server setup, which suggests the issue may be configuration-related on Production.