{"action":"created","issue":{"url":"https://api.github.com/repos/LeadDyno/intercooler-js/issues/148","repository_url":"https://api.github.com/repos/LeadDyno/intercooler-js","labels_url":"https://api.github.com/repos/LeadDyno/intercooler-js/issues/148/labels{/name}","comments_url":"https://api.github.com/repos/LeadDyno/intercooler-js/issues/148/comments","events_url":"https://api.github.com/repos/LeadDyno/intercooler-js/issues/148/events","html_url":"https://github.com/LeadDyno/intercooler-js/issues/148","id":195949649,"number":148,"title":"Error when setting up CodePen demo with Intercooler.js","user":{"login":"impressivewebs","id":558709,"avatar_url":"https://avatars.githubusercontent.com/u/558709?v=3","gravatar_id":"","url":"https://api.github.com/users/impressivewebs","html_url":"https://github.com/impressivewebs","followers_url":"https://api.github.com/users/impressivewebs/followers","following_url":"https://api.github.com/users/impressivewebs/following{/other_user}","gists_url":"https://api.github.com/users/impressivewebs/gists{/gist_id}","starred_url":"https://api.github.com/users/impressivewebs/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/impressivewebs/subscriptions","organizations_url":"https://api.github.com/users/impressivewebs/orgs","repos_url":"https://api.github.com/users/impressivewebs/repos","events_url":"https://api.github.com/users/impressivewebs/events{/privacy}","received_events_url":"https://api.github.com/users/impressivewebs/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":2,"created_at":"2016-12-16T00:07:07Z","updated_at":"2016-12-16T01:11:31Z","closed_at":null,"body":"Any idea why CodePen is throwing an error here?\r\n\r\nhttp://codepen.io/SitePoint/pen/1be743a859e9e056facbbc61347a181c\r\n\r\nCodePen allows Ajax, as long as the requested page is hosted on CodePen. You can see the `ic-post-to` attribute pointing to a CodePen .html page. So it should work. I've confirmed with Chris Coyier, one of the CodePen devs/creators, he says he can't figure out why it's not working. Oddly, the \"Request Method\" in the headers is listed as \"OPTIONS\", instead of \"GET\", which is strange. You can see this [in this screenshot](http://d.pr/i/VY26/iunGa5XQ) which compares a successful request using regular Ajax.\r\n\r\nThis could be a CodePen problem, but I just wanted to run it by you and see if maybe it was related to Intercooler.js itself. Thanks!"},"comment":{"url":"https://api.github.com/repos/LeadDyno/intercooler-js/issues/comments/267491377","html_url":"https://github.com/LeadDyno/intercooler-js/issues/148#issuecomment-267491377","issue_url":"https://api.github.com/repos/LeadDyno/intercooler-js/issues/148","id":267491377,"user":{"login":"impressivewebs","id":558709,"avatar_url":"https://avatars.githubusercontent.com/u/558709?v=3","gravatar_id":"","url":"https://api.github.com/users/impressivewebs","html_url":"https://github.com/impressivewebs","followers_url":"https://api.github.com/users/impressivewebs/followers","following_url":"https://api.github.com/users/impressivewebs/following{/other_user}","gists_url":"https://api.github.com/users/impressivewebs/gists{/gist_id}","starred_url":"https://api.github.com/users/impressivewebs/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/impressivewebs/subscriptions","organizations_url":"https://api.github.com/users/impressivewebs/orgs","repos_url":"https://api.github.com/users/impressivewebs/repos","events_url":"https://api.github.com/users/impressivewebs/events{/privacy}","received_events_url":"https://api.github.com/users/impressivewebs/received_events","type":"User","site_admin":false},"created_at":"2016-12-16T01:11:31Z","updated_at":"2016-12-16T01:11:31Z","body":"That's strange because CodePen is set up to allow those requests as long as the requested data is on a CodePen hosted page. So that issue is already addressed. For example, you can see a basic jQuery-based Ajax request [on CodePen here](https://codepen.io/SitePoint/pen/38467ada2ca410b7e4d2d1cc70010499.html). That works fine, so the correct headers are in place. But why doesn't it work with Intercooler?\r\n\r\nI tried the `withCredentials` part of that page you linked to, but that didn't work either, so I'm not sure what else to do. Like I said, it could be CodePen specific, but it's just strange that other Ajax requests work fine on CodePen, but not with Intercooler."}}
{"actor":{"display_login":"impressivewebs"}}