Mendix 7 Custom Widget cannot get dojoRequest to work

0
Hello and thanks for taking the time to read my post. My issue is that I’m creating an custom Mendix widget and want to call some API from the widget code via the dojo/request library, but when I do any get or post I get the  following error: "Unable to load https://www.google.com/ status: 0" Below is an example of the code I am using to call this and I get the same result for any post or get.   dojoRequest.get("https://www.google.com/").then(                 function(response){                    alert(response);                 },                 function(error){                    alert(error);                 }             ); Any suggestions would be greatly appreciated.  
asked
0 answers