Skip to content
This repository has been archived by the owner on Apr 3, 2020. It is now read-only.

net::ERR_SUCURITY_RESPONSE When I debug an unpublished test URL(https) #4032

Open
Ruomiz opened this issue Jul 17, 2018 · 0 comments
Open

net::ERR_SUCURITY_RESPONSE When I debug an unpublished test URL(https) #4032

Ruomiz opened this issue Jul 17, 2018 · 0 comments

Comments

@Ruomiz
Copy link

Ruomiz commented Jul 17, 2018

  override fun onReceivedSslError(view: XWalkView?, callback: ValueCallback<Boolean>?,error: SslError?) 
  {
                callback?.onReceiveValue(true) //ingore ssl
     //         super.onReceivedSslError(view, callback, error)
}

It will toast net::ERR_SUCURITY_RESPONSE .

Then I found a class in this project SslUtil.java:

public static boolean shouldDenyRequest(int error)
{
    assert error >= -215 && error <= -200;
    switch (error)
    {
        case -213:
        case -212:
        case -211:
        case -208:
        case -207:
        case -206:
        case -203:          
 //	case -202:   
        case -201:           
 //	case -200:  
 	case -150:
        case -129:
            return true;
    }
    return false;
}

I just annotate case 200 ,202 ;it will work normal

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant