[javascript] Getting request doesn't pass access control check: No 'Access-Control-Allow-Origin' header is present on the requested resource