Auto-authenticate Kibana 5.3 dashboard embedded in iframe

Making a preparatory ajax request to /api/security/v1/login to set the cookie as suggested in Authenticating to iframe-embedded Kibana dashboard might work. If the cookie is set correctly, the login screen should not be shown.