{"action":"opened","issue":{"url":"https://api.github.com/repos/angular/angular.js/issues/16674","repository_url":"https://api.github.com/repos/angular/angular.js","labels_url":"https://api.github.com/repos/angular/angular.js/issues/16674/labels{/name}","comments_url":"https://api.github.com/repos/angular/angular.js/issues/16674/comments","events_url":"https://api.github.com/repos/angular/angular.js/issues/16674/events","html_url":"https://github.com/angular/angular.js/issues/16674","id":354594153,"node_id":"MDU6SXNzdWUzNTQ1OTQxNTM=","number":16674,"title":"Angular 6 Header problems","user":{"login":"mblackbourne","id":15964574,"node_id":"MDQ6VXNlcjE1OTY0NTc0","avatar_url":"https://avatars0.githubusercontent.com/u/15964574?v=4","gravatar_id":"","url":"https://api.github.com/users/mblackbourne","html_url":"https://github.com/mblackbourne","followers_url":"https://api.github.com/users/mblackbourne/followers","following_url":"https://api.github.com/users/mblackbourne/following{/other_user}","gists_url":"https://api.github.com/users/mblackbourne/gists{/gist_id}","starred_url":"https://api.github.com/users/mblackbourne/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mblackbourne/subscriptions","organizations_url":"https://api.github.com/users/mblackbourne/orgs","repos_url":"https://api.github.com/users/mblackbourne/repos","events_url":"https://api.github.com/users/mblackbourne/events{/privacy}","received_events_url":"https://api.github.com/users/mblackbourne/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":0,"created_at":"2018-08-28T06:52:14Z","updated_at":"2018-08-28T06:52:14Z","closed_at":null,"author_association":"NONE","body":"<!--\r\nIF YOU DON'T FILL OUT THE FOLLOWING INFORMATION WE MIGHT CLOSE YOUR ISSUE WITHOUT INVESTIGATION\r\n-->\r\n\r\n<!--\r\n- For *SUPPORT QUESTIONS*, use one of the\r\n[support channels](https://github.com/angular/angular.js/blob/master/CONTRIBUTING.md#question).\r\n- Before submitting, please **SEARCH GITHUB** for a similar issue or PR. -->\r\n\r\n**I'm submitting a ...**\r\n<!-- (check one with \"x\") -->\r\n- [x ] bug report\r\n- [ ] feature request\r\n- [ ] other <!--(Please do not submit support requests here - see above)-->\r\n\r\n**Current behavior:**\r\n<!-- Describe how the bug manifests / how the current features are insufficient. -->\r\n\r\nI have an issue with the headers component. I am getting a header error  (Reason: CORS header ‘Access-Control-Allow-Origin’ missing). \r\n\r\nI am using the following code : \r\n\r\n--snippet SERVICE.ts\r\n\r\n` myFunction() {\r\n     let headers: HttpHeaders = new HttpHeaders();\r\n headers = headers.append('Access-Control-Allow-Origin: *', 'utf-8');\r\n headers = headers.append('Accept', 'application/json');\r\n    return this._http.get('https://bittrex.com/api/v1.1/public/getmarkets')\r\n.pipe(map(result => result));\r\n}\r\n`\r\n\r\n\r\n**Expected / new behavior:**\r\n<!-- Describe what the behavior would be without the bug / how the feature would improve AngularJS -->\r\n\r\nUnder network I get a 200 GET getmarkets and retrieving the Response objects perfectly. However I am not able to get the info into my service or component.\r\n\r\n**Minimal reproduction of the problem with instructions:**\r\n<!--\r\nIf the current behavior is a bug or you can illustrate your feature request better with an example,\r\nplease provide the *STEPS TO REPRODUCE* and if possible a *MINIMAL DEMO* of the problem via\r\nhttps://plnkr.co or similar (you can use this template as a starting point: http://plnkr.co/edit/tpl:yBpEi4).\r\n-->\r\nService.ts to component.ts\r\nComonent:: --Snippet\r\n\r\n`  ngOnInit() {\r\n   this._weather.dailyForcast()\r\n    .subscribe(res => {\r\n      console.log(res);\r\n    });\r\n\r\n  }`\r\n\r\nI am trying to just make sure that I will be able to get my objects into my component. \r\n\r\n**AngularJS version:** 1.x.y\r\n<!-- Check whether this is still an issue in the most recent stable or in the snapshot AngularJS\r\nversion (https://code.angularjs.org/snapshot/) -->\r\n\r\nAngularJS version: CLI= 6.1.2\r\n\r\n\r\n**Browser:** [all | Chrome XX | Firefox XX | Edge XX | IE XX | Safari XX | Mobile Chrome XX | Android X.X Web Browser | iOS XX Safari | iOS XX UIWebView | iOS XX WKWebView ]\r\n<!-- All browsers where this could be reproduced (and Operating System if relevant) -->\r\n\r\nBrowser: Firefox-esr\r\n\r\n**Anything else:**\r\n<!-- e.g. stacktraces, related issues, suggestions how to fix -->"}}
{"actor":{"display_login":"mblackbourne"}}