WordPress Login inside an iframe

Solution: 

The solution was to put

remove_action( 'login_init', 'send_frame_options_header' );
remove_action( 'admin_init', 'send_frame_options_header' );

in the functions.php file. Worked like a charm.