mirror of
https://github.com/Azure/cosmos-explorer.git
synced 2025-10-13 15:28:05 +01:00
redirect mongo proxy calls to tools federation
This commit is contained in:
parent
6ce45fd04b
commit
8c287770d7
@ -264,6 +264,17 @@ module.exports = function (_env = {}, argv = {}) {
|
||||
"Access-Control-Allow-Methods": "*",
|
||||
},
|
||||
proxy: {
|
||||
"/api/mongo": {
|
||||
target: "https://juno-test2.documents-dev.windows-int.net/api/mongo/test",
|
||||
changeOrigin: true,
|
||||
logLevel: "debug",
|
||||
bypass: (req, res) => {
|
||||
if (req.method === "OPTIONS") {
|
||||
res.statusCode = 200;
|
||||
res.send();
|
||||
}
|
||||
},
|
||||
},
|
||||
"/api": {
|
||||
target: "https://main.documentdb.ext.azure.com",
|
||||
changeOrigin: true,
|
||||
|
Loading…
x
Reference in New Issue
Block a user