Fix
This commit is contained in:
@@ -7,12 +7,10 @@ export class ServiceApi {
|
|||||||
constructor(private http: HttpClient) { }
|
constructor(private http: HttpClient) { }
|
||||||
|
|
||||||
public getListOfDropZones() {
|
public getListOfDropZones() {
|
||||||
const httpOptions = {
|
const headers = new HttpHeaders({
|
||||||
headers: new HttpHeaders({
|
'Access-Control-Allow-Origin': 'https://localhost:44344',
|
||||||
'Access-Control-Allow-Origin': 'https://localhost:44344',
|
});
|
||||||
})
|
|
||||||
};
|
|
||||||
|
|
||||||
return this.http.get<Array<DropZoneResp>>('https://localhost:44344/api/DropZone', httpOptions);
|
return this.http.get<Array<DropZoneResp>>('https://localhost:44344/api/DropZone', { headers: headers });
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user