From 913cb9c6c74e7db57203bf609c9b658cd9a17192 Mon Sep 17 00:00:00 2001 From: Sebastian Sdorra Date: Thu, 14 Mar 2019 17:38:00 +0100 Subject: [PATCH] fixed loading of plugin bundles with activated cas plugin --- scm-ui/src/containers/PluginLoader.js | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) 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(); })