[I am behind a corporate proxy]
I have following AJAX post request which submits the text on Slack Channel.
When I do it from Chrome it works just fine. But when I do it on Safari for iOS emulator the code doesn't work.
$.ajax({
data: 'payload=' + JSON.stringify({
"text" : com,
"channel" : "testing1",
"username" : "FST_"+cat,
"icon_emoji" : icon
}),
processData: false,
type: 'POST',
url: url,
crossDomain: true,
success: function(data) {
console.log("Moving to new page, LOG: "+data)
window.location.href = "record.html";
}
});
I tried to add proxy header but that didn't help. New to slack API.