{"action":"created","issue":{"url":"https://api.github.com/repos/AveVlad/gulp-connect/issues/100","labels_url":"https://api.github.com/repos/AveVlad/gulp-connect/issues/100/labels{/name}","comments_url":"https://api.github.com/repos/AveVlad/gulp-connect/issues/100/comments","events_url":"https://api.github.com/repos/AveVlad/gulp-connect/issues/100/events","html_url":"https://github.com/AveVlad/gulp-connect/issues/100","id":55400661,"number":100,"title":"How can I enable CORS?","user":{"login":"binarykitchen","id":177641,"avatar_url":"https://avatars.githubusercontent.com/u/177641?v=3","gravatar_id":"","url":"https://api.github.com/users/binarykitchen","html_url":"https://github.com/binarykitchen","followers_url":"https://api.github.com/users/binarykitchen/followers","following_url":"https://api.github.com/users/binarykitchen/following{/other_user}","gists_url":"https://api.github.com/users/binarykitchen/gists{/gist_id}","starred_url":"https://api.github.com/users/binarykitchen/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/binarykitchen/subscriptions","organizations_url":"https://api.github.com/users/binarykitchen/orgs","repos_url":"https://api.github.com/users/binarykitchen/repos","events_url":"https://api.github.com/users/binarykitchen/events{/privacy}","received_events_url":"https://api.github.com/users/binarykitchen/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":18,"created_at":"2015-01-25T06:25:46Z","updated_at":"2015-02-19T15:59:53Z","closed_at":null,"body":"Would be good to see a tip for that. Tried with the middleware https://www.npmjs.com/package/cors but it didn't seem to work ..."},"comment":{"url":"https://api.github.com/repos/AveVlad/gulp-connect/issues/comments/75077399","html_url":"https://github.com/AveVlad/gulp-connect/issues/100#issuecomment-75077399","issue_url":"https://api.github.com/repos/AveVlad/gulp-connect/issues/100","id":75077399,"user":{"login":"PrimeByDesign","id":10505326,"avatar_url":"https://avatars.githubusercontent.com/u/10505326?v=3","gravatar_id":"","url":"https://api.github.com/users/PrimeByDesign","html_url":"https://github.com/PrimeByDesign","followers_url":"https://api.github.com/users/PrimeByDesign/followers","following_url":"https://api.github.com/users/PrimeByDesign/following{/other_user}","gists_url":"https://api.github.com/users/PrimeByDesign/gists{/gist_id}","starred_url":"https://api.github.com/users/PrimeByDesign/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/PrimeByDesign/subscriptions","organizations_url":"https://api.github.com/users/PrimeByDesign/orgs","repos_url":"https://api.github.com/users/PrimeByDesign/repos","events_url":"https://api.github.com/users/PrimeByDesign/events{/privacy}","received_events_url":"https://api.github.com/users/PrimeByDesign/received_events","type":"User","site_admin":false},"created_at":"2015-02-19T15:59:53Z","updated_at":"2015-02-19T15:59:53Z","body":"Ah well not quite… I always celebrate too early! \n\nRequest header field Content-Type is not allowed by Access-Control-Allow-Headers.\n\n\n\n> On 19 Feb 2015, at 15:58, John <notifications@github.com> wrote:\n> \n> Ha, I did think that, but didn’t want to patronise! Glad you sorted it out!\n> \n> \n> John Farrow\n> \n> On Thu, Feb 19, 2015 at 3:45 PM, PrimeByDesign <notifications@github.com>\n> wrote:\n> \n> > John, \n> > Thank you so much for all of your help today. You’ve been an absolute star. \n> > I think I was just getting a little confused as I’m new to this stuff. It turns out when inspecting the packets I could see that the CORS headers were present. \n> > Upon further investigation I realised that I needed to enable to headers in my API back end and not in the front end part of the system. I’ve made the changes and now I am getting id is undefined errors which seem a little more familiar. \n> > So at the moment I think my problem may be solved. \n> > Thank you again. \n> >> On 19 Feb 2015, at 15:06, John <notifications@github.com> wrote:\n> >> \n> >> This puppy -> https://www.npmjs.com/package/http-server\n> >> \n> >> \n> >> Just a quick and dirty static file server\n> >> \n> >> \n> >> John Farrow\n> >> \n> >> On Thu, Feb 19, 2015 at 1:37 PM, PrimeByDesign <notifications@github.com>\n> >> wrote:\n> >> \n> >> > Do you mean gulp-webserver? \n> >> >> On 19 Feb 2015, at 12:21, John <notifications@github.com> wrote:\n> >> >> \n> >> >> I presume the error you mean is in browser? or another error?\n> >> >> \n> >> >> I did nothing but the steps listed\n> >> >> \n> >> >> —\n> >> >> Reply to this email directly or view it on GitHub <https://github.com/AveVlad/gulp-connect/issues/100#issuecomment-75043203>.\n> >> >> \n> >> > ---\n> >> > Reply to this email directly or view it on GitHub:\n> >> > https://github.com/AveVlad/gulp-connect/issues/100#issuecomment-75052688\n> >> —\n> >> Reply to this email directly or view it on GitHub <https://github.com/AveVlad/gulp-connect/issues/100#issuecomment-75066817>.\n> >> \n> > ---\n> > Reply to this email directly or view it on GitHub:\n> > https://github.com/AveVlad/gulp-connect/issues/100#issuecomment-75074400\n> —\n> Reply to this email directly or view it on GitHub <https://github.com/AveVlad/gulp-connect/issues/100#issuecomment-75077074>.\n> \n\n"}}