Fix
This commit is contained in:
@@ -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 });
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user