Recent searches
No recent searches

Gaston Martin
Joined Feb 08, 2022
·
Last activity Feb 16, 2022
Following
0
Followers
0
Total activity
3
Votes
0
Subscription
1
ACTIVITY OVERVIEW
BADGES
ARTICLES
POSTS
COMMUNITY COMMENTS
ARTICLE COMMENTS
ACTIVITY OVERVIEW
Latest activity by Gaston Martin
Gaston Martin commented,
Community comment Developer - Zendesk SDKs
Thanks for your help, we solved the location issue.
Below we'll send you a code snippet regarding the request which is blocked by CORS policy.
function getTemplates() {
var requestOptions = {
url: "https://api.smooch.io/v1.1/apps/" + appidSunco + "/integrations/" + integrationIdSunco + "/messageTemplates",
type: 'GET',
headers: { "Authorization": "Basic " + apikeySunco },
dataType: 'json'
};
client.request(requestOptions)
.then(function (data) {
doSomething(data);
});
}
This function on Support works fine, but on sell we get the following CORS error:
Access to XMLHttpRequest at 'https://guruyu.proxy.futuresimple.com/proxy/v2/to/https%3A%2F%2Fapi.smooch.io%2Fv1.1%2Fapps%2F6078c86da31211500d4685703%2Fintegrations%2F61978eb887216600e84402c3%2FmessageTemplates' from origin 'https://app.futuresimple.com' has been blocked by CORS policy: The value of the 'Access-Control-Allow-Credentials' header in the response is '' which must be 'true' when the request's credentials mode is 'include'. The credentials mode of requests initiated by the XMLHttpRequest is controlled by the withCredentials attribute.
Thanks in advance
View comment · Edited Feb 16, 2022 · Gaston Martin
0
Followers
0
Votes
0
Comments
Gaston Martin created a post,
Post Developer - Zendesk SDKs
Hi. im developing a sell app integration, but im having trouble with the location of the app.
This is my manifest file:
"location": {
"sell": {
"person_card":"assets/iframe.html",
"lead_card":"assets/iframe.html",
"deal_card": "assets/iframe.html"
}
}
For some reason, the apps only loads on the lead card location. Besides this, im calling a rest api from the client.request(). On support works fine (the same app, same endpoint, etc) but on sell it gives an cors error.
Posted Feb 08, 2022 · Gaston Martin
0
Followers
2
Votes
2
Comments