fixed loading of plugin bundles with activated cas plugin

This commit is contained in:
Sebastian Sdorra
2019-03-14 17:38:00 +01:00
parent aec702ff89
commit 913cb9c6c7

View File

@@ -81,7 +81,14 @@ class PluginLoader extends React.Component<Props, State> {
};
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();
})