{"action":"created","issue":{"url":"https://api.github.com/repos/yesodweb/yesod-scaffold/issues/114","labels_url":"https://api.github.com/repos/yesodweb/yesod-scaffold/issues/114/labels{/name}","comments_url":"https://api.github.com/repos/yesodweb/yesod-scaffold/issues/114/comments","events_url":"https://api.github.com/repos/yesodweb/yesod-scaffold/issues/114/events","html_url":"https://github.com/yesodweb/yesod-scaffold/issues/114","id":119759197,"number":114,"title":"Enable CORS by default","user":{"login":"marcenuc","id":5284,"avatar_url":"https://avatars.githubusercontent.com/u/5284?v=3","gravatar_id":"","url":"https://api.github.com/users/marcenuc","html_url":"https://github.com/marcenuc","followers_url":"https://api.github.com/users/marcenuc/followers","following_url":"https://api.github.com/users/marcenuc/following{/other_user}","gists_url":"https://api.github.com/users/marcenuc/gists{/gist_id}","starred_url":"https://api.github.com/users/marcenuc/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/marcenuc/subscriptions","organizations_url":"https://api.github.com/users/marcenuc/orgs","repos_url":"https://api.github.com/users/marcenuc/repos","events_url":"https://api.github.com/users/marcenuc/events{/privacy}","received_events_url":"https://api.github.com/users/marcenuc/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":1,"created_at":"2015-12-01T16:49:06Z","updated_at":"2015-12-03T21:18:29Z","closed_at":null,"body":"I have created a new project with:\r\n\r\n```sh\r\nstack new myproject yesod-scaffold/hsfiles/postgres.hsfiles\r\ncd myproject\r\nstack build\r\nstack exec -- yesod devel\r\nopen http://localhost:3000/\r\n```\r\n\r\nThe glyphicons are not displayed correctly because CORS is not properly setup. Then I have installed the `wai-cors` package as explained in https://github.com/yesodweb/yesod-cookbook/pull/2 and now it works.\r\n\r\nI think this should be in the default setup because the home page has glyphicons.\r\n\r\nAre you open to a pull-request?"},"comment":{"url":"https://api.github.com/repos/yesodweb/yesod-scaffold/issues/comments/161787608","html_url":"https://github.com/yesodweb/yesod-scaffold/issues/114#issuecomment-161787608","issue_url":"https://api.github.com/repos/yesodweb/yesod-scaffold/issues/114","id":161787608,"user":{"login":"snoyberg","id":49415,"avatar_url":"https://avatars.githubusercontent.com/u/49415?v=3","gravatar_id":"","url":"https://api.github.com/users/snoyberg","html_url":"https://github.com/snoyberg","followers_url":"https://api.github.com/users/snoyberg/followers","following_url":"https://api.github.com/users/snoyberg/following{/other_user}","gists_url":"https://api.github.com/users/snoyberg/gists{/gist_id}","starred_url":"https://api.github.com/users/snoyberg/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/snoyberg/subscriptions","organizations_url":"https://api.github.com/users/snoyberg/orgs","repos_url":"https://api.github.com/users/snoyberg/repos","events_url":"https://api.github.com/users/snoyberg/events{/privacy}","received_events_url":"https://api.github.com/users/snoyberg/received_events","type":"User","site_admin":false},"created_at":"2015-12-03T21:18:29Z","updated_at":"2015-12-03T21:18:29Z","body":"Enabling CORS has security implications, and therefore IMO should not be something we turn on by default."}}