• Rakesh Sharma 78
  • NEWBIE
  • 0 Points
  • Member since 2018

  • Chatter
    Feed
  • 0
    Best Answers
  • 0
    Likes Received
  • 0
    Likes Given
  • 3
    Questions
  • 1
    Replies
Hi,

I am trying to install Open CTI Demo adapter app on my lightening app. But after setup, when i click on phone it throws error.

SecurityError: Blocked a frame with origin "https://------.my.salesforce.com" from accessing a frame with origin "https://-----.lightning.force.com". Protocols, domains, and ports must match.

Couple of things i tried below like
1. whitelisting URL in CORS
2. Updating CTI adapter URL to include domain.
But i an still facing this issue and due to this phone comes as blank page (doesn't loads). I am testing on Safari/Chrome. Thanks in advance for your help.

-Rgds
Hi,

I am trying to call external rest API from salesforce apex code. But it is giving below error. 

System.CalloutException: sun.security.validator.ValidatorException: PKIX path building failed: sun.security.provider.certpath.SunCertPathBuilderException: unable to find valid certification path to requested target

This very common error when you try to connect to external servers. Now, problem is i have tried all possible solutions which are ging on salesforce site or on web. But now albe to resolve this issue. There are couple of links which given idea to solve it but that also doesnt work.

https://developer.salesforce.com/forums/?id=906F0000000B0PRIA0
https://salesforce.stackexchange.com/questions/68189/error-doing-callout-to-a-site-with-godaddy-certificate

Can someone point to right steps for this problem, or any exiating page where this communication issue is rexolved?

Thanks in advance.
 
Hi,
I am trying to call rest api from apex code but due to server restrictions we cannot do anything about certificate changes on target server. So, i want to call that API similar to -k or --insecure option in curl. I am getting result when i call directly with -k option using curl.

curl -k https://<URL>. --working
----------------
   request.setEndpoint('https//<URL>'); --not working.
    request.setMethod('GET');
-----------

Thanks for help in advance.
Hi,
I am trying to call rest api from apex code but due to server restrictions we cannot do anything about certificate changes on target server. So, i want to call that API similar to -k or --insecure option in curl. I am getting result when i call directly with -k option using curl.

curl -k https://<URL>. --working
----------------
   request.setEndpoint('https//<URL>'); --not working.
    request.setMethod('GET');
-----------

Thanks for help in advance.