Access-Control-Allow-Origin not working once allowed from VideoOS.MobileServer.Service.exe.config

I have a website that can be accessed at https://127.0.0.1:2053, and Milestone is available at https://127.0.0.1:2087. This means they share the same domain but use different ports.

I used Milestone XPMobileSDK.js to build a simple page that streams video from https://127.0.0.1:2053. To enable cross-origin access, I set 127.0.0.1:2053 as the Access-Control-Allow-Origin in the VideoOS.MobileServer.Service.exe.config file located on the Milestone Mobile server. After making this change, I restarted the Milestone Mobile server.

However, I am still encountering a cross-origin access issue when trying to stream from

https://127.0.0.1:2053. What could be the root cause of this problem?

Did you use - https://supportcommunity.milestonesys.com/s/article/XProtect-Mobile-Server-app-on-different-server-CORS?language=en_US

Thanks for the link. I didn’t found this link earlier. Will try like this and see if this works or not.

I have done the changes based on the above link but it didn’t work, so we have to make the configuration as then only it started working.

For some cases the changes on the link works fine , but in this case it doesn’t work. Still can’t understand what is going on for this Milestone instance.