I'm using this client
var client = new forcetk.Client();
To make requests. I'm trying to pass another URL but the
has been blocked by CORS policy: No 'Access-Control-Allow-Origin' header is present on the requested resource.
error shows up. Can i set up any headers to the client? Is there a way to make my client's request inside an XMLHttpRequest call? Any help would be much appreciated. Thanks in advance.
Here is my oversimplified code
> forcetk.Client.prototype.createBlob = function (objtype, fields,
> filename, payloadField, payload, callback, error, retry) {
> 'use strict';
> let res = this.blob('/' + this.apiVersion + '/sobjects/' + objtype + '/',
> fields, filename, payloadField, payload, callback, error, retry);
> res.header("Access-Control-Allow-Origin", "*");
> return res;
> };