• Cole Prato
  • NEWBIE
  • 10 Points
  • Member since 2019
  • Salesforce Administrator

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

I am getting this error when launching zoom from SF using AppExchange Integration using Chrome.

 Refused to frame '' because it violates the following Content Security Policy directive: "frame-src https: mailto: https://content.appinium.com https://az766683.vo.msecnd.net https://appiniumcontentcentralus.blob.core.windows.net https://appiniumcontenteastaus.blob.core.windows.net https://appiniumcontentwesteu.blob.core.windows.net https://upload.appinium.com https://util.appinium.com https://api.appinium.com *.visualforce.com".

It works fine in FireFox... I think this has to do something with CSP Trusted Sites but I don't know what to add. I have tired Zoom support and not getting any response. 

Any help would be great!
Hi,

I am having issue getting my Custom Lighting Page Template to Display properly for Phone/Mobile?

I want it to stack the components example: 1 -> 2 -> 3 like the normal template already provided by Salesforce, but all I am getting is it just shurnk smaller which one work. 

Any help would be great! 

Design for Middle Section:
<flexipage:region name="left" defaultWidth="SMALL" />
        
        <flexipage:region name="middle" defaultWidth="LARGE">
            <flexipage:formfactor type="Medium" width="SMALL" />
        </flexipage:region>
       
        <flexipage:region name="right" defaultWidth="SMALL" />
        
    </flexipage:template>
    <design:supportedFormFactors>
        <design:supportedFormFactor type="Small"/>
        <design:supportedFormFactor type="Large"/>
    </design:supportedFormFactors>

User-added image

 
Hi,

I am getting this error: 
Uncaught Error in $A.getCallback() [Cannot read property 'Product_Version__c' of undefined]
Callback failed: apex://dynamicCardController/ACTION$getCaseDetails

I have a lightning component on the page that uses an Apex Controller to Grab Account Detials and Display on the Case Page.

I am only getting this error when the case does not have an account. I tired only to display the component when there is an account but still getting these errors.

End Goal is for me not to get the error on the page, since there would be no way to display the data without an account on the case.

Helper Code:
({
    getCaseDetails : function(cmp, event) {
        var recordId = cmp.get('v.recordId');
        var getCaseDetails = cmp.get('c.getCaseDetails');
        getCaseDetails.setParams({
            recordId : recordId
        })
        getCaseDetails.setCallback(cmp, function(response) {
            var state = response.getState();
            if (state === 'SUCCESS') {
                var results = response.getReturnValue();
                cmp.set('v.AccountId', results.AccountId);
                cmp.set('v.ProductVersion', results.Account.Product_Version__c);
                
            } else 
                console.log(response);
            
        })
        $A.enqueueAction(getCaseDetails);
    }
})

 
Hi,

I am getting this error when launching zoom from SF using AppExchange Integration using Chrome.

 Refused to frame '' because it violates the following Content Security Policy directive: "frame-src https: mailto: https://content.appinium.com https://az766683.vo.msecnd.net https://appiniumcontentcentralus.blob.core.windows.net https://appiniumcontenteastaus.blob.core.windows.net https://appiniumcontentwesteu.blob.core.windows.net https://upload.appinium.com https://util.appinium.com https://api.appinium.com *.visualforce.com".

It works fine in FireFox... I think this has to do something with CSP Trusted Sites but I don't know what to add. I have tired Zoom support and not getting any response. 

Any help would be great!
Hi,

I am getting this error: 
Uncaught Error in $A.getCallback() [Cannot read property 'Product_Version__c' of undefined]
Callback failed: apex://dynamicCardController/ACTION$getCaseDetails

I have a lightning component on the page that uses an Apex Controller to Grab Account Detials and Display on the Case Page.

I am only getting this error when the case does not have an account. I tired only to display the component when there is an account but still getting these errors.

End Goal is for me not to get the error on the page, since there would be no way to display the data without an account on the case.

Helper Code:
({
    getCaseDetails : function(cmp, event) {
        var recordId = cmp.get('v.recordId');
        var getCaseDetails = cmp.get('c.getCaseDetails');
        getCaseDetails.setParams({
            recordId : recordId
        })
        getCaseDetails.setCallback(cmp, function(response) {
            var state = response.getState();
            if (state === 'SUCCESS') {
                var results = response.getReturnValue();
                cmp.set('v.AccountId', results.AccountId);
                cmp.set('v.ProductVersion', results.Account.Product_Version__c);
                
            } else 
                console.log(response);
            
        })
        $A.enqueueAction(getCaseDetails);
    }
})