Websocket,使用一段时间后,IE 11上出现SecurityError

时间:2019-05-03 14:03:31

标签: javascript internet-explorer websocket internet-explorer-11

我们有一个库,可通过标准javascript webSocket客户端从网页内的Web套接字客户端连接到PC上运行的webSocket服务器。该网页在https上运行,而我们的webSocket通信是在localhost上的wss进行的。

一段时间(两分钟或更长时间)后,当我们想与webSocket服务器进行通信时,出现安全错误。在控制台中还会出现

  

最大会话超时设置已从iframe更新:..

我在下面附上。我已经从控制台附加了错误和日志。我们正在使用Internet Explorer 11。

Max Session timeout settings updated from iframe:  https://.......lcid=1033&themeId=ccf5c90e-e435-e911-a847-000d3a20dff2&tstamp=2851759&updateTimeStamp=636903320640637959&userts=132012737777621646&ver=-1083510705#etc=1&extraqs=%3f_gridType%3d1%26etc%3d1%26id%3d%257b58CABECA-6167-E911-A2EB-00505636AC47%257d%26rskey%3d%257b00000000-0000-0000-00AA-000010001002%257d&pagemode=iframe&pagetype=entityrecord&rskey=%7b00000000-0000-0000-00AA-000010001002%7d&counter=1556802020518
SecurityError
   {
      [functions]: ,
      __proto__: { },
      ABORT_ERR: 20,
      code: 18,
      constructor: { },
      DATA_CLONE_ERR: 25,
      DOMSTRING_SIZE_ERR: 2,
      HIERARCHY_REQUEST_ERR: 3,
      INDEX_SIZE_ERR: 1,
      INUSE_ATTRIBUTE_ERR: 10,
      INVALID_ACCESS_ERR: 15,
      INVALID_CHARACTER_ERR: 5,
      INVALID_MODIFICATION_ERR: 13,
      INVALID_NODE_TYPE_ERR: 24,
      INVALID_STATE_ERR: 11,
      message: "SecurityError",
      name: "SecurityError",
      NAMESPACE_ERR: 14,
      NETWORK_ERR: 19,
      NO_DATA_ALLOWED_ERR: 6,
      NO_MODIFICATION_ALLOWED_ERR: 7,
      NOT_FOUND_ERR: 8,
      NOT_SUPPORTED_ERR: 9,
      PARSE_ERR: 81,
      QUOTA_EXCEEDED_ERR: 22,
      SECURITY_ERR: 18,
      SERIALIZE_ERR: 82,
      Symbol(observable)_y.49yp6wheckl: undefined,
      Symbol(react.async_mode)_x.49yp6wheckl: undefined,
      Symbol(react.concurrent_mode)_s.49yp6whecxl: undefined,
      Symbol(react.context)_r.49yp6whecxl: undefined,
      Symbol(react.element)_l.49yp6whecxl: undefined,
      Symbol(react.forward_ref)_t.49yp6whecxl: undefined,
      Symbol(react.fragment)_n.49yp6whecxl: undefined,
      Symbol(react.lazy)_w.49yp6wheckl: undefined,
      Symbol(react.memo)_v.49yp6whecxl: undefined,
      Symbol(react.portal)_m.49yp6whecxl: undefined,
      Symbol(react.profiler)_p.49yp6whecxl: undefined,
      Symbol(react.provider)_q.49yp6whecxl: undefined,
      Symbol(react.strict_mode)_o.49yp6whecxl: undefined,
      Symbol(react.suspense)_u.49yp6whecxl: undefined,
      SYNTAX_ERR: 12,
      TIMEOUT_ERR: 23,
      TYPE_MISMATCH_ERR: 17,
      URL_MISMATCH_ERR: 21,
      VALIDATION_ERR: 16,
      WRONG_DOCUMENT_ERR: 4
   }

SCRIPT5022: SecurityError
identificationVendor.js (41,97351)

连接一直处于打开状态(我们没有关闭并在需要时再次打开webSocket通信)。出现错误后,按F5键无济于事。唯一有用的是关闭选项卡,然后在另一个选项卡中再次运行它,或重新启动IE。

任何想法都可能是问题或如何找到问题?

谢谢

0 个答案:

没有答案