mirror of
https://github.com/scm-manager/scm-manager.git
synced 2026-06-15 03:11:14 +02:00
fixed loading of plugin bundles with activated cas plugin
This commit is contained in:
@@ -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();
|
||||
})
|
||||
|
||||
Reference in New Issue
Block a user