当前位置: 首页 > news >正文

如何把自己做的网站放到内网seo优化网络

如何把自己做的网站放到内网,seo优化网络,网站备案有哪些资料,网站入口应用上架GooglePlay 收到邮件提示 出现这个原因是因为我在app中使用webview加载Https的H5界面#xff0c;在onReceivedSslError()中处理SslErrorHandler时#xff0c;出现白屏现象#xff0c;原因是webview默认在加载有证书验证的url时#xff0c;会默认使用handler.cancel…应用上架GooglePlay 收到邮件提示 出现这个原因是因为我在app中使用webview加载Https的H5界面在onReceivedSslError()中处理SslErrorHandler时出现白屏现象原因是webview默认在加载有证书验证的url时会默认使用handler.cancel()进行拦截操作这里只需要改成handler.proceed()。 2种解决方式 1.常规解决方式 出现在错误的时候让用户同意 final AlertDialog.Builder builder new AlertDialog.Builder(HomeWebActivity.this); String message SSL Certificate error.; switch (error.getPrimaryError()) {case SslError.SSL_UNTRUSTED:message The certificate authority is not trusted.;break;case SslError.SSL_EXPIRED:message The certificate has expired.;break;case SslError.SSL_IDMISMATCH:message The certificate Hostname mismatch.;break;case SslError.SSL_NOTYETVALID:message The certificate is not yet valid.;break; } message Do you want to continue anyway?;builder.setTitle(SSL Certificate Error); builder.setMessage(message); builder.setPositiveButton(continue, new DialogInterface.OnClickListener() {Overridepublic void onClick(DialogInterface dialog, int which) {handler.proceed();} }); builder.setNegativeButton(cancel, new DialogInterface.OnClickListener() {Overridepublic void onClick(DialogInterface dialog, int which) {handler.cancel();} }); final AlertDialog dialog builder.create(); dialog.show(); 2.第二种加载https 证书 证书一般常规可以问前端或者后端要。参考 从网页中获取Ssl证书_NextWarm的博客-CSDN博客拿到将证书.cer文件复制到应用程序的res / raw文件夹中 private static final int[] CERTIFICATES {R.raw.cardhobby, // you can put several certificates }; private ArrayListSslCertificate certificates new ArrayList();private void loadSSLCertificates() {try {CertificateFactory certificateFactory CertificateFactory.getInstance(X.509);for (int rawId : CERTIFICATES) {InputStream inputStream getResources().openRawResource(rawId);InputStream certificateInput new BufferedInputStream(inputStream);try {Certificate certificate certificateFactory.generateCertificate(certificateInput);if (certificate instanceof X509Certificate) {X509Certificate x509Certificate (X509Certificate) certificate;SslCertificate sslCertificate new SslCertificate(x509Certificate);certificates.add(sslCertificate);} else {}} catch (CertificateException exception) {} finally {try {certificateInput.close();inputStream.close();} catch (IOException e) {e.printStackTrace();}}}} catch (CertificateException e) {e.printStackTrace();} } binding.webview.setWebViewClient(new WebViewClient() {public void onReceivedSslError(WebView view, SslErrorHandler handler, SslError error) {//handler.cancel(); // Android默认的处理方式// handler.proceed(); // 接受所有网站的证书//handleMessage(Message msg); // 进行其他处理SslCertificate serverCertificate error.getCertificate();Bundle serverBundle SslCertificate.saveState(serverCertificate);for (SslCertificate appCertificate : certificates) {if (TextUtils.equals(serverCertificate.toString(), appCertificate.toString())) { // First fast checkBundle appBundle SslCertificate.saveState(appCertificate);SetString keySet appBundle.keySet();boolean matches true;for (String key : keySet) {Object serverObj serverBundle.get(key);Object appObj appBundle.get(key);if (serverObj instanceof byte[] appObj instanceof byte[]) { // key x509-certificateif (!Arrays.equals((byte[]) serverObj, (byte[]) appObj)) {matches false;break;}} else if ((serverObj ! null) !serverObj.equals(appObj)) {matches false;break;}}if (matches) {handler.proceed();return;}}}
http://www.w-s-a.com/news/652008/

相关文章:

  • 北京网站建设net2006厦门优化公司
  • 制作网页前为什么要建立站点菏泽百度网站建设
  • 做影视网站引流网页美工设计课程教案
  • 响应式网站开发流程图网站优化seo教程
  • 做汽车团购网站百度官网平台
  • 网站增加关键字建设旅游网站的功能定位
  • 怎么搭建源码网站义乌网络
  • 定远规划建设局网站wordpress云主机安装
  • 慈溪市网站开发软件开发文档国家标准
  • 本地佛山顺德网站设计公司的网站如何建设
  • 网站建设前十名网站建设 招标书
  • 手机网站标准百度搜索关键词排名优化推广
  • 中国空间站科幻作文1000字wordpress运行库
  • 徐州做网站的wordpress可视化编辑器排行
  • 官方网站英语上海公司注册核名查询
  • 东莞网站建设推广云南昆明最新消息
  • 上网站乱码网页设计与网站建设案例教程
  • 宣讲网站建设wordpress多媒体主题
  • 如何成立网站互联网开发是做什么的
  • 网站首页的尺寸做多大网页图片排版
  • 龙岩天宫山索道多少钱河南网站排名优化哪家好
  • 北京做网站设计程序员和网站开发
  • 个人 做自媒体 建网站图片制作成视频的手机软件
  • h5 建站网站 移动端重庆潼南网站建设价格
  • 商企在线营销型网站怎么做时光网站
  • 网站建设方案论文1500竞价托管哪家便宜
  • 使用cdn的网站宣武网站建设
  • 营销型网站怎么建设企业网站Wap在线生成
  • 网站建设服务费应该做到什么科目广州网页制作服务商
  • 网站显示500错误怎么解决方法店面设计模板