You need to sign in to do that
Don't have an account?

lightning component iframe only allowed embedded link.. How i access normal website url like google.com
lightning component iframe only allowed embedded link.. How i access normal website url like google.com?
That's is not up to Salesforce to decide. That kind of restriction is imposed by the site you're requesting when they enforce some parameters in the response header.
Here is an article explaining this:
https://help.salesforce.com/articleView?id=000182205&type=1
So let say you have a component like this:
You won't be able to see google page and that's because in their header they enforce that:
Using SAMEORIGIN it's enforcing that you cannot display Google website if the domain does not match. In this case Salesforce domain and Google are distinct.
But if you try with another website that does not enforce that restriction, you will be able to see it:
Hope to have helped!
Regards.
Don't forget to mark your thread as 'SOLVED' with the answer that best helps you.
All Answers
That's is not up to Salesforce to decide. That kind of restriction is imposed by the site you're requesting when they enforce some parameters in the response header.
Here is an article explaining this:
https://help.salesforce.com/articleView?id=000182205&type=1
So let say you have a component like this:
You won't be able to see google page and that's because in their header they enforce that:
Using SAMEORIGIN it's enforcing that you cannot display Google website if the domain does not match. In this case Salesforce domain and Google are distinct.
But if you try with another website that does not enforce that restriction, you will be able to see it:
Hope to have helped!
Regards.
Don't forget to mark your thread as 'SOLVED' with the answer that best helps you.
Thank you for your quick response. Problem SOLVED
Thanks & Regards,
Hariharan Ravi