mirror of
https://github.com/Azure/cosmos-explorer.git
synced 2026-06-12 07:27:33 +01:00
redirect mongo proxy calls to tools federation
This commit is contained in:
@@ -264,6 +264,17 @@ module.exports = function (_env = {}, argv = {}) {
|
|||||||
"Access-Control-Allow-Methods": "*",
|
"Access-Control-Allow-Methods": "*",
|
||||||
},
|
},
|
||||||
proxy: {
|
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": {
|
"/api": {
|
||||||
target: "https://main.documentdb.ext.azure.com",
|
target: "https://main.documentdb.ext.azure.com",
|
||||||
changeOrigin: true,
|
changeOrigin: true,
|
||||||
|
|||||||
Reference in New Issue
Block a user