小编Hsi*_*iao的帖子

Microsoft Edge阻止了发送到同一专用网络CIDR中的IP的跨域请求

$.ajax({
    url: "http://10.13.22.150/req_path",
    success: function(result){
        console.log(result);
    }
});
Run Code Online (Sandbox Code Playgroud)

我想将跨域XMLHttpRequest发送到专用网络中的IP地址.但是,开发人员工具控制台中显示以下错误:

SCRIPT7002:XMLHttpRequest:网络错误0x2efd,由于错误00002efd无法完成操作.

根据Wireshark的说法,数据包不是从客户端发送的.我猜这个请求被Microsoft Edge阻止了.此外,我发现只有当XMLHttpRequest和Edge客户端的URL在私有网络的同一个CIDR中时才会阻止请求.

Client IP             Request URL            Result
192.168.x.x  send to  192.168.x.x   ->>>>>   X
10.13.x.x    send to  10.13.x.x     ->>>>>   X
10.13.x.x    send to  192.168.x.x   ->>>>>   O
Run Code Online (Sandbox Code Playgroud)

其他浏览器如IE11/Chrome/Firefox也可以.此情况仅在Microsoft Edge中显示.有关此问题的解决方法或解决方案吗?

javascript ajax xmlhttprequest cors microsoft-edge

11
推荐指数
1
解决办法
2万
查看次数

pgbench进行大量事务后,数据库暂时断开连接

我正在使用(PostgreSQL)9.2.1并使用pgbench测试数据库.

pgbench -h 192.168.39.38 -p 5433 -t 1000 -c 40 -j 8 -C -U admin testdb
Run Code Online (Sandbox Code Playgroud)

当我使用-C参数(为每个事务建立新连接)时,事务总是在第16381个事务之后丢失.

Connection to database "testdb" failed
could not connect to server: Can't assign requested address
    Is the server running on host "192.168.39.38" and accepting
    TCP/IP connections on port 5433?
Client 19 aborted in establishing connection.
Connection to database "testdb" failed
could not connect to server: Can't assign requested address
    Is the server running on host "192.168.39.38" and accepting
    TCP/IP connections on port 5433?
Client …
Run Code Online (Sandbox Code Playgroud)

sql database postgresql benchmarking postgresql-9.2

7
推荐指数
1
解决办法
1862
查看次数