mirror of
https://github.com/zhigang1992/DefinitelyTyped.git
synced 2026-04-23 12:56:46 +08:00
15 lines
282 B
TypeScript
15 lines
282 B
TypeScript
|
|
|
|
xdomain.masters({
|
|
'http://abc.example.com': '/api/*'
|
|
});
|
|
|
|
xdomain.slaves({
|
|
"http://xyz.example.com": "/proxy.html"
|
|
});
|
|
|
|
xdomain.debug = true;
|
|
xdomain.on("log", (msg) => console.log(msg));
|
|
xdomain.on("timeout", () => console.log("timeout"));
|
|
xdomain.cookies.master = "MASTER";
|