identify ui requests as ajax requests

This commit is contained in:
Sebastian Sdorra
2019-03-12 13:55:34 +01:00
parent 856f564c8d
commit d54b5360e2

View File

@@ -6,7 +6,9 @@ import type { BackendErrorContent } from "./errors";
const fetchOptions: RequestOptions = {
credentials: "same-origin",
headers: {
Cache: "no-cache"
Cache: "no-cache",
// identify the request as ajax request
"X-Requested-With": "XMLHttpRequest"
}
};