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) { } 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 });
} }
} }