mirror of
https://github.com/scm-manager/scm-manager.git
synced 2025-11-10 15:35:49 +01:00
identify ui requests as ajax requests
This commit is contained in:
@@ -6,7 +6,9 @@ import type { BackendErrorContent } from "./errors";
|
|||||||
const fetchOptions: RequestOptions = {
|
const fetchOptions: RequestOptions = {
|
||||||
credentials: "same-origin",
|
credentials: "same-origin",
|
||||||
headers: {
|
headers: {
|
||||||
Cache: "no-cache"
|
Cache: "no-cache",
|
||||||
|
// identify the request as ajax request
|
||||||
|
"X-Requested-With": "XMLHttpRequest"
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user