Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

ADFS 4 -'X-Frame-Options' to 'deny'

I have an aspx page embedded in Dynamics CRM. The aspx page uses openId and an adfs application group to authenticate and has been working up until security update KB4493473 (it is an assumption that the update is causing the issue). Prior to the update, when the user loaded the CRM form, the iframe would seamlessly load without issue or authentication prompts. Since the update, the console gives this message: 'https://sts...... &x-client-SKU=ID_NET451&x-client-ver=5.2.1.0' in a frame because it set 'X-Frame-Options' to 'deny'.

I have not found any way to have adfs NOT send that x-frame header, is there any workaround here?

like image 522
user1202839 Avatar asked Jan 25 '26 08:01

user1202839


1 Answers

We had a similar problem since some week on a project I work on (iFrame integration not working any more because of ADFS, apparently since May Windows cumulative update has been installed)

Luckily, a colleague found a workaround with this ADFS PowerShell command :

Set-AdfsResponseHeaders -RemoveHeaders "X-Frame-Options"

This command is documented for ADFS 2019 (but works on ADFS 4 too) : https://learn.microsoft.com/fr-fr/windows-server/identity/ad-fs/operations/customize-http-security-headers-ad-fs

Hope this will help. Regards,

like image 113
RGT Avatar answered Jan 29 '26 14:01

RGT



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!