How to change X-Frame-Options setting in source code

Hi,

I’m trying to put the metabase dashboard in iframe, but I got Refused to display in a frame because it set ‘X-Frame-Options’ to ‘DENY’.

I saw this post in github metabase repo https://github.com/metabase/metabase/issues/2721, they are building their own jar to solve this problem.

Does anyone know how should I change the X-Frame-Options setting in source code?

Thank you.

Solved the problem, just command out {“X-Frame-Options” “DENY”} in src/metabase/middleware.clj.

Hope this can help others.