Skip to content

Commit b8c8573

Browse files
author
Cookiezaurs
committed
[dbviewer]Hide api_key from requests
1 parent 7e5327e commit b8c8573

1 file changed

Lines changed: 1 addition & 2 deletions

File tree

plugins/dbviewer/frontend/public/javascripts/countly.views.js

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -250,7 +250,6 @@
250250
sort = JSON.stringify(this.preparedSortObject);
251251
}
252252
var apiQueryData = {
253-
api_key: countlyGlobal.member.api_key,
254253
app_id: countlyCommon.ACTIVE_APP_ID,
255254
//filename: "DBViewer" + moment().format("DD-MMM-YYYY"), - using passed filename from form
256255
projection: JSON.stringify(this.preparedProjectionFields),
@@ -303,7 +302,7 @@
303302
},
304303
computed: {
305304
dbviewerAPIEndpoint: function() {
306-
var url = '/db?api_key=' + countlyGlobal.member.api_key + '&app_id=' + countlyCommon.ACTIVE_APP_ID + '&dbs=' + this.localDb + '&collection=' + this.localCollection;
305+
var url = '/db?app_id=' + countlyCommon.ACTIVE_APP_ID + '&dbs=' + this.localDb + '&collection=' + this.localCollection;
307306
if (this.queryFilter) {
308307
url += '&filter=' + encodeURIComponent(this.queryFilter);
309308
}

0 commit comments

Comments
 (0)