Proxy Bypass PAC example. 


The CSC reads the values of Section 3 (in Bold). Other values are to comply with the PAC format. 



function FindProxyForURL(url, host) {

        var bypassproxy="PROXY 1.1.1.1:3128; PROXY 2.2.2.2:3128";


// =========================================================

    // Section 3: Bypass via Cloud Security Connectors


    // Bypass via CSC Public IPs (Examples)

        // Okta Domains (for Location Rules)

    if ((shExpMatch(host, "*.okta.com")) ||

        (shExpMatch(host, "*.oktacdn.com")) ||

        (shExpMatch(host, "*.okta-emea.com")) ||

        (shExpMatch(host, "login.mydomain.com")) ||

        // O365 Domains for ConditionalAccess

        (shExpMatch(host, "login.microsoftonline.com")) ||

        (shExpMatch(host, "login.microsoft.com")) ||

        (shExpMatch(host, "login.windows.net")) ||

        // IP / Port test page

        (shExpMatch(host, "portquiz.net"))) {

        return bypassproxy

    }

// =========================================================

    return bypassproxy

}