Skip to content
Snippets Groups Projects
Commit 6782bcb4 authored by FORESTIER Fabien's avatar FORESTIER Fabien
Browse files

Send credentials in get reuse methods

parent ab684c54
Branches
Tags
1 merge request!14Version 1.3.0
Pipeline #2875 passed
......@@ -32,7 +32,7 @@ export class ReuseService {
query += `&offset=${(this.pageNumber ? (this.pageNumber - 1) * this.limit : 0)}`;
query += `&sort_by=${this.sortOptions.value}.${this.sortOptions.order}`;
return this._httpClient.get<IReuse[]>(this.reuseServiceUrl + query, { observe: 'response' }).pipe(
return this._httpClient.get<IReuse[]>(this.reuseServiceUrl + query, { withCredentials: true, observe: 'response' }).pipe(
map((response) => {
const totalCount = response.headers.get('Content-Range');
const reuses = [];
......@@ -44,7 +44,7 @@ export class ReuseService {
}
findById(id): Observable<Reuse> {
return this._httpClient.get<IReuse>(this.reuseServiceUrl + id).pipe(
return this._httpClient.get<IReuse>(this.reuseServiceUrl + id, { withCredentials: true }).pipe(
map((response) => {
return new Reuse(response);
}),
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment