Web SDK Error: Access-Control-Allow-Origin

Hello,

I’m trying to connect to milestone using the web example, but I’m reciving the “Access-Control-Allow-Origin” in the javascript console..

How do I overcome that?

I am guessing that the sample is Mobile Server Protocol

When you read about this sample in the MIP Documentation there are very specific instructions on where you must place the code. It must be placed in a subfolder in the installation path of the Mobile Server you are using.

-–

Copy from this folder: [C:\Program](file:C:/Program) Files (x86)\Milestone\MIPSDK\ProtocolSamples\MobileServerSample

And store in this folder: [C:\Program](file:C:/Program) Files\Milestone\XProtect Mobile Server\Web

-–

The issue is that there is a mechanism for safety that checks that an web application does not come from a “foreign” place, thus the “Access-Control-Allow-Origin” error.