12-12-2023
04:31 PM
- last edited on
12-15-2023
01:49 PM
by
Shahzad_Ismail
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
12-13-2023 12:26 AM
Hi,
Can you provide the URL of the demo sample you are using.