Here is the best solution that won't break when upgrading Wordpress:
remove_action( 'login_init', 'send_frame_options_header' ); remove_action( 'admin_init', 'send_frame_options_header' );
Here is another solution if you are using Apache. Throw this into your .htaccess:
<IfModule mod_headers.c> Header unset X-Frame-Options Header always unset X-Frame-Options </IfModule>
source share