function readOnly(count){ }
Starting November 20, the site will be set to read-only. On December 4, 2023,
forum discussions will move to the Trailblazer Community.
+ Start a Discussion
Austin VillanuevaAustin Villanueva 

can't use jsforce with opencti, Access-Control-Allow-Origin ASAP

HI guys, we are using the opencti api for our click to dial but we want to add an interface to create a case during calls,
so I found jsforce. but unfortunately, I can't use it it's getting me an error of No Access-Control-Allow-Origin. 
Our webphone is in different domain but opencti works fine because it is in iframe but I don't why jsforce is not working if opencti api works perfectly fine.
Is there anybody that use opencti along with jsforce? If you guys have ideas let me know. Thank you.
Raj VakatiRaj Vakati
Hi Austin, 
I have' t tried it complete. But I think it will work if you try with this approach.
  1. CORS setting in Securities in SFDC(Salesforce CORS whitelist)
  2. Set  Access-Control-Allow-Origin HTTP header, along with any additional CORS HTTP headers
  3. Try JSONP ( which Should work)