Smart HTTP Service

The Smart HTTP Service provides all the same functionality that the NG HTTP service does, but ensures that the necessary cookies are set so that the SCL Backend recognises a valid JSDO Session if a user is authenticated. For more information please see the official Angular documentation.

 

Using the Smart HTTP Service

import { SmartHttpService } from '@consultingwerk/smartcomponents-core';
 
constructor(private http: SmartHttpService) { }
 
ngOnInit() {
	this.http.get(...) /** use the service as you would the Angular HTTP service */
}