I'm trying to convert the following Angular 1 code to Angular 2:
$http.jsonp('https://accounts.google.com/logout');
It needs to be a JSONP request to skip the CORS policy issue.
With Angular 15's standalone component API, use withJsonpSupport()
:
bootstrapApplication(AppComponent, {
providers: [provideHttpClient(withJsonpSupport())],
});