How to update the X-Frame-Option from an HTTPS Response to DENY for a dash app

I am working on a project and one of the requirements is to edit the HTTPS repose so that the X-Frame-Options is set to DENY. I have tried to use the flask make_response function but I keep getting error that the input I supply is a DIV. Can anyone help with how to achieve this, I would really appreciate.