Hi
I'm testing web widget on Galaxy watch3.
I saw XMLHttpRequest CORS success on web application .
But web widget not run with same source code.
Error message
Failed to load http://xxxxxx : request doesn't pass CORS check, please check Access-Control-Allow-Origin header in reponse
code is very simple
var xhr = new XMLHttpRequest(); xhr.open('GET', url, true); xhr.setRequestHeader('Content-Type', 'text/plain'); xhr.onreadystatechange = handleResponseTEXT; xhr.onload = function() { if (this.status == 200) { /* Handle the response */ log('xhr onload handler'); } }; xhr.send();
I use tizen studio 4.0
Web widgets don't support CORS?