diff --git a/npm/ng-packs/packages/core/src/lib/providers/core-module-config.provider.ts b/npm/ng-packs/packages/core/src/lib/providers/core-module-config.provider.ts index b07697b135..823f70957c 100644 --- a/npm/ng-packs/packages/core/src/lib/providers/core-module-config.provider.ts +++ b/npm/ng-packs/packages/core/src/lib/providers/core-module-config.provider.ts @@ -1,5 +1,10 @@ import { makeEnvironmentProviders, APP_INITIALIZER, Injector, Provider } from '@angular/core'; import { TitleStrategy } from '@angular/router'; +import { + provideHttpClient, + withInterceptorsFromDi, + withXsrfConfiguration, +} from '@angular/common/http'; import { CORE_OPTIONS, LOCALIZATIONS, @@ -92,6 +97,13 @@ export function withCompareFuncFactory( export function provideAbpCore(...features: CoreFeature[]) { const providers = [ + provideHttpClient( + withInterceptorsFromDi(), + withXsrfConfiguration({ + cookieName: 'XSRF-TOKEN', + headerName: 'RequestVerificationToken', + }), + ), LocaleProvider, CookieLanguageProvider, {