This commit is contained in:
eromano
2023-06-22 10:24:37 +02:00
parent 5b235212eb
commit 58ba5b730a
3 changed files with 3 additions and 179 deletions

View File

@@ -59,6 +59,8 @@ export class AdfHttpClient implements ee.Emitter,JsApiHttpClient {
on: ee.EmitterMethod;
off: ee.EmitterMethod;
once: ee.EmitterMethod;
_disableCsrf: boolean;
emit: (type: string, ...args: any[]) => void;
get disableCsrf(): boolean {
@@ -68,7 +70,7 @@ export class AdfHttpClient implements ee.Emitter,JsApiHttpClient {
set disableCsrf(disableCsrf: boolean) {
this._disableCsrf = disableCsrf;
}
private defaultSecurityOptions = {
withCredentials: true,
isBpmRequest: false,

View File

@@ -16,8 +16,6 @@
*/
export interface SecurityOptions {
// readonly isBpmRequest: boolean;
// readonly enableCsrf?: boolean;
readonly withCredentials?: boolean;
readonly authentications?: Authentication;
readonly defaultHeaders?: Record<string, string>;