• John Vitales
  • NEWBIE
  • 10 Points
  • Member since 2022

  • Chatter
    Feed
  • 0
    Best Answers
  • 0
    Likes Received
  • 0
    Likes Given
  • 6
    Questions
  • 2
    Replies

We have a website that has Content Security Policy.

We are looking to embed this website using an iframe however we keep getting the error log below.

What is the proper way to add salesforce into a website's CSP?

 

error log:

Refused to frame 'https://my-example-website.com/' because an ancestor violates the following Content Security Policy directive: "frame-ancestors {{list of added referrers}}

Referrers include:

https://*.my.salesforce.com

https://*.lightning.force.com

Is there a way to always open the first entry of a custom object in Salesforce?

So lets say there's a lightning app called "Test App" and in this Test App theres a custom object called "Test Object".

When launching Test App, I want the landing page to be the first entry of Test Object rather than viewing everything on a list view.

Is this possible?

Thanks

Hello everyone,

I have a Custom Object that has an in-line Visualforce Page which is basically an iframe. The iframe's source is coming from the Custom Object's "selected source" field.

 

<apex:page standardController="Custom_Obj__c"  >
    <iframe src="{!Custom_Obj__c.Selected_source__c}"  />
</apex:page>

This is all in one "App".  This app also has an apex component that enables me to update the "Selected Source" field.  Although the record is updating correctly, the changes doesn't seem to reflect until I refresh the page.  This means the iframe doesn't update unless the page is refreshed.  I do not want the page to refresh and so the ideal solution is if I can have the apex component update the Visual Force page's iframe source directly rather than updating the Selected Source field first then refreshing the page.

I cannot seem to find a way to do this because the standardController on the Visualforce page has to point to the Custom Object otherwise I cannot use the iframe on my Custom Object.

Is there a way for my apex component to update the iframe's source directly? Or, is there a way to include an iFrame into a custom object without the use of Visualforce page?

Any help would be much appreciated.

 

Good day everyone,

I already posted this on the Lightning section but thought I'd get more views by posting this in General Development.

I've gone through the different SF trailhead guides about creating custom objects and creating relationships etc.  My goal is to ultimately create my own custom object that will display an iframe. However, the iframe's source must be entered by the user.
I can't seem to find any guides that does what I need. I've seen some posts about creating a visual force page but it seems this is outside of the workflow of creating objects.
The end goal is to create my own Lightning Web Component that displays an iframe which also has an input field for users to change the source for the said iframe.
Any help will be appreciated.
 
Thanks,

Good day everyone,

I've gone through the different SF trailhead guides about creating custom objects and creating relationships etc.  My goal is to ultimately create my own custom object that will display an iframe. However, the iframe's source must be entered by the user.

I can't seem to find any guides that does what I need. I've seen some posts about creating a visual force page but it seems this is outside of the workflow of creating objects.

The end goal is to create my own Lightning Web Component that displays an iframe which also has an input field for users to change the source for the said iframe.

Any help will be appreciated.

 

Thanks,

I was able to create a Connected App from my Salesforce Sandbox environment.  I am able to use the Salesforce REST API from an external app and POST data into different Salesforce Objects.

My question is, how can we bring the work created in the Salesforce Sandbox into a production environment?

Any clarifications or documentations will be greatly appreciated.

 

Thank you

 

 

We have a website that has Content Security Policy.

We are looking to embed this website using an iframe however we keep getting the error log below.

What is the proper way to add salesforce into a website's CSP?

 

error log:

Refused to frame 'https://my-example-website.com/' because an ancestor violates the following Content Security Policy directive: "frame-ancestors {{list of added referrers}}

Referrers include:

https://*.my.salesforce.com

https://*.lightning.force.com

I was able to create a Connected App from my Salesforce Sandbox environment.  I am able to use the Salesforce REST API from an external app and POST data into different Salesforce Objects.

My question is, how can we bring the work created in the Salesforce Sandbox into a production environment?

Any clarifications or documentations will be greatly appreciated.

 

Thank you