Browse Source

Merge pull request #21596 from abpframework/auto-merge/rel-9-0/3286

Merge branch dev with rel-9.0
pull/21601/head
maliming 2 years ago
committed by GitHub
parent
commit
a813511f27
No known key found for this signature in database GPG Key ID: B5690EEEBB952194
  1. 12
      npm/ng-packs/packages/core/src/lib/providers/core-module-config.provider.ts

12
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<CoreFeatureKind>[]) {
const providers = [
provideHttpClient(
withInterceptorsFromDi(),
withXsrfConfiguration({
cookieName: 'XSRF-TOKEN',
headerName: 'RequestVerificationToken',
}),
),
LocaleProvider,
CookieLanguageProvider,
{

Loading…
Cancel
Save