Security

last person joined: 17 hours ago 

Forum to discuss Enterprise security using HPE Aruba Networking NAC solutions (ClearPass), Introspect, VIA, 360 Security Exchange, Extensions, and Policy Enforcement Firewall (PEF).
Expand all | Collapse all

Cross Domain Requests Support on Mobility Controller

This thread has been viewed 0 times
  • 1.  Cross Domain Requests Support on Mobility Controller

    Posted Dec 15, 2014 07:09 AM
    Hi, I am implementing an external CP solution where the clients via javascript perform HTTP POST to login and logout of the MC. The MC is being referenced using the domain securelogin.arubanetworks.com . I am getting the error "Access-Controll-Allow-Origin" header is present on the requested resource when a client tries to post a logout to - https://securelogin.arubanetworks.com/auth/logout.html . I after research on the web I note that it seems the controller is set to disallow cross domain requests. How can I overcome this issue? Thanks, William


  • 2.  RE: Cross Domain Requests Support on Mobility Controller

    EMPLOYEE
    Posted Dec 15, 2014 07:31 AM

    What is your exect HTML for logout that generates the error?

     



  • 3.  RE: Cross Domain Requests Support on Mobility Controller

    Posted Dec 15, 2014 08:48 AM

    Hi Colin,

     

    Am not sure what you are asking for however, as I have indicated earlier we use the following html to logout the user: https://secrurelogin.arubanetworks.com/auth/logout.html by prompting the client to logout.

     

    BR,

     

    William



  • 4.  RE: Cross Domain Requests Support on Mobility Controller

    Posted Dec 21, 2014 11:03 AM

    interesting question, im not 100% sure that the logoff function works when you use an external system for the login part.



  • 5.  RE: Cross Domain Requests Support on Mobility Controller

    Posted Jan 28, 2015 10:04 AM

    Hi boneyard,

     

    I now don't get the CORS error, and note the HTTPS POST hits the captiveportal session acl rule for dst-nat to 8081, however WebAuth is not working (can't see the radius auth sent to my the radius server group).

     

    BR,



  • 6.  RE: Cross Domain Requests Support on Mobility Controller

    Posted Mar 14, 2015 07:21 AM

    Hi, 

     

    Still have the problem.

     

    Client doing a logout post initiated by javascript as follows:

     

    $(document).ready(function()
    {
    $.support.cors = true;
    callGeneral();
    });

    function dologout()
    {
    if (confirm("Do You Wish To Log Out?"))
    {
    $.post(
    "https://captiveportal-login.domain.com/auth/logout.html",
    function(data)
    {
    },"text"
    );
    $.post(
    "/hspi/logout.jsp?rand="+Math.random(),
    function(data)
    {
    window.location="http://portal.domain.com/hspi/";
    },"text"
    );
    }
    }

     

    Is this failing because the login post is sent from a different origin (portal.domain.com) to the controller's origin (captiveportal-login.domain.com)? (Please note I have updated the default SSL certificate also with a wild card in the CN - *.domain.com .

     

    If the issues related to the controller's web server rejecting the cross origin request, then can the controller's web server be configured to allow this origin -portal.domain.com?

     

    BR,

     

     



  • 7.  RE: Cross Domain Requests Support on Mobility Controller

    EMPLOYEE
    Posted Mar 14, 2015 08:37 AM

    I read your post and I'm trying to answer based on what you are asking.

     

    When you use a wildcard cert, BOTH the login and logout should post to "captiveportal-login.domain.com".  As you know, when you use a wildcard certificate, the controller resolves all DNS requests for captiveportal-login.domain.com to the controller's switchip and then logs out the user.   First, replace with captiveportal-login.domain.com with the ip address of the local controller and see if it works.  If it does not work, you have another issue, like routing, or you need to change the ip cp-redirect-address on that local controller to an ip address on a vlan on that controller that is routable to the client..