{"action":"created","issue":{"url":"https://api.github.com/repos/studiodev/Mocky/issues/7","labels_url":"https://api.github.com/repos/studiodev/Mocky/issues/7/labels{/name}","comments_url":"https://api.github.com/repos/studiodev/Mocky/issues/7/comments","events_url":"https://api.github.com/repos/studiodev/Mocky/issues/7/events","html_url":"https://github.com/studiodev/Mocky/issues/7","id":48794214,"number":7,"title":"Fool proof headers","user":{"login":"sidonaldson","id":236669,"avatar_url":"https://avatars.githubusercontent.com/u/236669?v=3","gravatar_id":"","url":"https://api.github.com/users/sidonaldson","html_url":"https://github.com/sidonaldson","followers_url":"https://api.github.com/users/sidonaldson/followers","following_url":"https://api.github.com/users/sidonaldson/following{/other_user}","gists_url":"https://api.github.com/users/sidonaldson/gists{/gist_id}","starred_url":"https://api.github.com/users/sidonaldson/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/sidonaldson/subscriptions","organizations_url":"https://api.github.com/users/sidonaldson/orgs","repos_url":"https://api.github.com/users/sidonaldson/repos","events_url":"https://api.github.com/users/sidonaldson/events{/privacy}","received_events_url":"https://api.github.com/users/sidonaldson/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":1,"created_at":"2014-11-14T14:18:57Z","updated_at":"2015-09-22T09:49:54Z","closed_at":null,"body":"This is purely a nice to have...\r\n\r\nSome people wouldn't understand CORS issues and would want to use Mocky from localhost, the options are there to add the right header in manually but it would be super nice if this one specifically was a checkbox or even just explained in text on the screen.\r\n\r\nAccess-Control-Allow-Origin: *\r\n\r\nOr even send it by default. What do you think?"},"comment":{"url":"https://api.github.com/repos/studiodev/Mocky/issues/comments/142230155","html_url":"https://github.com/studiodev/Mocky/issues/7#issuecomment-142230155","issue_url":"https://api.github.com/repos/studiodev/Mocky/issues/7","id":142230155,"user":{"login":"studiodev","id":872095,"avatar_url":"https://avatars.githubusercontent.com/u/872095?v=3","gravatar_id":"","url":"https://api.github.com/users/studiodev","html_url":"https://github.com/studiodev","followers_url":"https://api.github.com/users/studiodev/followers","following_url":"https://api.github.com/users/studiodev/following{/other_user}","gists_url":"https://api.github.com/users/studiodev/gists{/gist_id}","starred_url":"https://api.github.com/users/studiodev/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/studiodev/subscriptions","organizations_url":"https://api.github.com/users/studiodev/orgs","repos_url":"https://api.github.com/users/studiodev/repos","events_url":"https://api.github.com/users/studiodev/events{/privacy}","received_events_url":"https://api.github.com/users/studiodev/received_events","type":"User","site_admin":false},"created_at":"2015-09-22T09:49:54Z","updated_at":"2015-09-22T09:49:54Z","body":"The first usage of Mocky is to mock server-server API, in this use case you doesn't need CORS. So it's not a good idea for me to add it by default.\r\n\r\nIf you write a JS call, you must be aware of CORS issues to connect the client to your distant API, I think it's good that people issue this problem in the development process.\r\n\r\nBut I agree that CORS headers are a pain to add if you have to write many routes. Maybe just add a \"Enable CORS\"' button on the form would be the right solution."}}