1const headerDict = {
2 'Content-Type': 'application/json',
3 'Accept': 'application/json',
4 'Access-Control-Allow-Headers': 'Content-Type',
5}
6
7const requestOptions = {
8 headers: new Headers(headerDict),
9};
10
11return this.http.get(this.heroesUrl, requestOptions)
12