This commit is contained in:
Sébastien André
2019-10-02 14:36:27 +02:00
parent 7d6d69550c
commit 9710b37353

View File

@@ -7,12 +7,10 @@ export class ServiceApi {
constructor(private http: HttpClient) { }
public getListOfDropZones() {
const httpOptions = {
headers: new HttpHeaders({
'Access-Control-Allow-Origin': 'https://localhost:44344',
})
};
const headers = new HttpHeaders({
'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 });
}
}