By passing the login page in the embedded Iframe

I am trying to embed an iframe in my web application. I don't want to show login screen to my user So I tried to make an ajax call using below code.

$(document).ready(function(){

        $.ajax({
            type: "PUT",
            url: "https://nlxesdev01.corp.cvscaremark.com:5601/api/security/v1/login",
            contentType: 'application/x-www-form-urlencoded',
            dateType: 'jsonp',
            xhrFields: { withCredentials: true },
            username: "xxxx",
            date: '{}',
            password: "xxxxx",
            crossDomain: true,
            headers: {"Access-Control-Allow-Origin": "*"},
            success: function (data) {
                alert("Hi");
            }
        });
    });

But I am getting below issue. Can you please help me with this?

Hi @RajiReddy, please see these posts:

I saw these posts and made an Ajax call as shown above but still couldn't figure out the issue. Is there any sample code with you guys?

Unfortunately I'm not aware of any sample code.

This topic was automatically closed 28 days after the last reply. New replies are no longer allowed.