Answers for "typescript api request header"

0

typescript api request header

const headerDict = {
  'Content-Type': 'application/json',
  'Accept': 'application/json',
  'Access-Control-Allow-Headers': 'Content-Type',
}

const requestOptions = {                                                                                                                                                                                 
  headers: new Headers(headerDict), 
};

return this.http.get(this.heroesUrl, requestOptions)
Posted by: Guest on August-31-2020

Code answers related to "TypeScript"

Browse Popular Code Answers by Language