Mobile Server and CORS support

Hi,

We’re trying to display a video sequence in our WEB application using Milestone Mobile Server. Both MobileServerSample and MobilePlaybackSample work just fine as long as we have them deployed to the same IIS where Mobile Server itself is installed. However, once we move them to another machine we are facing troubles with Cross-Origin Resource Sharing - the request coming from javascript now has ‘OPTIONS’ verb instead of ‘POST’ and it gets rejected by the Mobile Server.

Now, why this is important to us? Our web application is hosted in the cloud (Microsoft Azure) and we’re using ‘App Services’ hosting option instead of Virtual Machine. It automatically gives us various failover and load balancing options, which we would have to implement manually in case of VM. However, with this option we do not have a direct control over the machine hosting our web application and so we cannot install any application on it including Milestone Mobile Server i.e. we have to host it somewhere else. And this leads to a problem described above.

Is there a workaround for us to get Mobile Server working in our setup? Any configuration settings there?

Regards,

Vadim

Hi Vadim,

please note that CORS is not supported on the Mobile Server. The only way to get it to work will be to run clients from the web folder of the Mobile server.

Vadim,

It has been almost a year from this message. Is there any plans on adding CORS support? It isn’t neither complex nor esoteric and without it your platform is rather useless for integration for anyone not under the Windows umbrela. CORS should be configurable.

Hi,

I’m joining to the request of adding CORS support to the Mobile Server.

We run on 2 different machines, one is running the milestone services

and the other one is where our website is running.

Why it must be so difficult to support this kind of solution to work

with the Mobile Server?

Thanks

There is a possible workaround. You can display video from XProtect Mobile Server in an iframe, see - https://force.milestonesys.com/support/articles/en_US/How_To/Display-video-from-XProtect-Mobile-Server-in-an-iframe