cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

CORS blocked

adnan1982
New Contributor

Hi

 

While trying to setup a simple Web.-to-Phone demo we are failing on the initial stage with an error in browser saying:

 

Cross-Origin Request Blocked: The Same Origin Policy disallows reading the remote resource at https://clientapi.sinch.com/ocra/v2/applications/{APP KEY}/instances. (Reason: CORS header ‘Access-Control-Allow-Origin’ missing). Status code: 502.

 

This happens after we run:

 

registrationCallback.register("TOKEN value here")

 

Any ideas how to proceed and make a simple Web-To-Phone app in pure HTML+JS (without npm, or any modern front-end framework).

 

Regards

 

 

1 REPLY 1

Roland_Ian
Employee
Employee

Hi,

Can you provide the URL of the demo sample you are using. 

 

Roland-Ian Clothier, Developer Support Engineer