Microsoft Edge:跨区域连接错误

huangapple go评论72阅读模式
英文:

Microsoft Edge : Cross zone connection error

问题

I have a script that uses WebSocket on loopback.
Edge shows the following error when script tries to connect to 127.0.0.1:4530.

"SCRIPT12017: WebSocket Error: SECURITY_ERR, Cross zone connection not allowed"

Solution:
I have made the following changes and it worked for me.

  • In the Control Panel - Internet Option, select the Security Tab. In the Security tab, select Local intranet zone. Click on Sites button and uncheck all checkboxes in Local intranet dialog.

I want to know:

  1. what is the meaning of this error:
    "SCRIPT12017: WebSocket Error: SECURITY_ERR, Cross zone connection not allowed"
    and
  2. why I have to make the above changes in Internet options.

I have googled it but no luck.

英文:

I have a script that uses WebSocket on loopback.
Edge shows the following error when script try to connect to 127.0.0.1:4530.

"SCRIPT12017: WebSocket Error: SECURITY_ERR, Cross zone connection not allowed"

Solution :
I have made the following changes and it worked for me.

  • In the Control Panel - Internet Option, select the Security Tab. In the Security tab, select Local intranet zone. Click on Sites button and uncheck all checkboxes in Local intranet dialog.

I want to know :

  1. what is the meaning of this error :
    "SCRIPT12017: WebSocket Error: SECURITY_ERR, Cross zone connection not allowed"
    and
  2. why I have to make above changes in Internet options.

I have googled it but no luck.

答案1

得分: 1

  1. 这是一个与安全相关的错误。看起来您的网站正在尝试通过不允许的安全区域建立连接,与您的设置不符。

  2. 当您修改了站点中的选项并取消了勾选后,现在允许通过不同的安全区域建立连接,从而解决了该错误。

英文:
  1. It is a security-related error. It looks like your site is trying for making a connection through different security zones which is not allowed as per your settings.

  2. When you modified the settings by unchecking the options in sites, now it is allowed for making a connection through different security zones which fixed that error.

huangapple
  • 本文由 发表于 2020年1月3日 21:28:00
  • 转载请务必保留本文链接:https://go.coder-hub.com/59579440.html
匿名

发表评论

匿名网友

:?: :razz: :sad: :evil: :!: :smile: :oops: :grin: :eek: :shock: :???: :cool: :lol: :mad: :twisted: :roll: :wink: :idea: :arrow: :neutral: :cry: :mrgreen:

确定