UNPKG

proactive-http-fetch

Version:

Proactive http fetch package

15 lines 454 B
export class AntiforgeryService { constructor() { this.storedHeaderValue = ''; } get headerName() { return 'RequestVerificationToken'; } ; get headerValue() { return this.storedHeaderValue; } ; storeAntiforgery(response) { if (!!this.storedHeaderValue) return; this.storedHeaderValue = response.headers[this.headerName]; } } //# sourceMappingURL=antiforgery-service.js.map