Skip to content

Instantly share code, notes, and snippets.

@NetanelBasal
Created October 25, 2022 09:26
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save NetanelBasal/40879e5466ac778c44706757cf5309f0 to your computer and use it in GitHub Desktop.
Save NetanelBasal/40879e5466ac778c44706757cf5309f0 to your computer and use it in GitHub Desktop.
import {
provideHttpClient,
withJsonpSupport,
withXsrfConfiguration
} from '@angular/common/http';
import { bootstrapApplication } from '@angular/platform-browser';
bootstrapApplication(AppComponent, {
providers: [
provideHttpClient(
withXsrfConfiguration({ cookieName: '', headerName: '' }),
withJsonpSupport()
),
],
})
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment