Last active
October 17, 2019 14:48
-
-
Save ewnavilae/07dd5aa58377db6c9ab6df116467b44f to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
diff --git a/node_modules/@microsoft/applicationinsights-dependencies-js/dist-esm/ajax.js b/node_modules/@microsoft/applicationinsights-dependencies-js/dist-esm/ajax.js | |
index 6d17418..a6e00ae 100644 | |
--- a/node_modules/@microsoft/applicationinsights-dependencies-js/dist-esm/ajax.js | |
+++ b/node_modules/@microsoft/applicationinsights-dependencies-js/dist-esm/ajax.js | |
@@ -189,7 +189,11 @@ var AjaxMonitor = /** @class */ (function () { | |
} | |
var originalFetch = window.fetch; | |
var fetchMonitorInstance = this; | |
+ const blockedUrls = ["BLOCKED_KEYWORD_1", "BLOCKED_KEYWORD_2"]; | |
window.fetch = function fetch(input, init) { | |
+ if (blockedUrls.find(url => input.indexOf(url) > -1)){ | |
+ return originalFetch(input,init) | |
+ } | |
var fetchData; | |
if (fetchMonitorInstance.isFetchInstrumented(input) && fetchMonitorInstance.isMonitoredInstance(undefined, undefined, input, init)) { | |
try { |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment