Unable to create the response header 'set-cookie' in Kibana 7.6.2

I am using Kibana 7.6.2. I tried to hit /internal/security/login with valid credentials from iFrame . But getting 404 error. I just want to authenticate user and create the response header set-cookie which will create a session. ES Version is 7.6.2 with the basic license.

It is because of the version iam using - Kibana OSS . That is why it is not hitting the specific API . Now I installed the Kibana basic version and it is working fine as expected.