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
S GogatiS Gogati 

How would we know programmatically wheather ClickJack is enabled or not

We can  Enable clickjack protection for non-setup Salesforce pages under Setup > Security Controls > Session Settings.

My requirement is we need to know programatically  wheather  ClickJack is enabled or not (Apex controller)
ShashankShashank (Salesforce Developers) 
You can use the metadata api to get this info: https://www.salesforce.com/us/developer/docs/api_meta/Content/meta_securitysettings.htm

How to use the metadata api in apex: http://andyinthecloud.com/2013/10/27/introduction-to-calling-the-metadata-api-from-apex/
S GogatiS Gogati
Hi shashank thanks for reply,

here is my concern

its webservice call to the same SFDC org and its nothing but the API call from apex instead of JAVA
it would fail if no API is enable for that user

Thanks in Advance.
Gogati