Trying to iframe https://login.microsoftonline.com/ on a VF page.

However, I get the error: Refused to display 'https://login.microsoftonline.com/' in a frame because it set 'X-Frame-Options' to 'deny'.

Is there anything I can do?



DENY: The page cannot be displayed in a frame, regardless of the site attempting to do so.


You could instead open the URL in a new window rather than embedding it in an iframe.


Simple answer: There is no solution for this, the X-Frame-options is set to deny at the header level.

Microsoft may be doing this for security reasons, have a button to redirect your users to the login page of microsoft instead of iframing the login page.

Refer: https://help.salesforce.com/HTViewSolution?id=000182205&language=en_US

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.