diff --git a/scm-ui/src/containers/PluginLoader.js b/scm-ui/src/containers/PluginLoader.js index 599ffcb67c..292e5ebaee 100644 --- a/scm-ui/src/containers/PluginLoader.js +++ b/scm-ui/src/containers/PluginLoader.js @@ -81,7 +81,14 @@ class PluginLoader extends React.Component { }; loadBundle = (bundle: string) => { - return fetch(bundle) + return fetch(bundle, { + credentials: "same-origin", + headers: { + Cache: "no-cache", + // identify the request as ajax request + "X-Requested-With": "XMLHttpRequest" + } + }) .then(response => { return response.text(); })