{"action":"created","issue":{"url":"https://api.github.com/repos/kataras/iris/issues/218","repository_url":"https://api.github.com/repos/kataras/iris","labels_url":"https://api.github.com/repos/kataras/iris/issues/218/labels{/name}","comments_url":"https://api.github.com/repos/kataras/iris/issues/218/comments","events_url":"https://api.github.com/repos/kataras/iris/issues/218/events","html_url":"https://github.com/kataras/iris/issues/218","id":162049592,"number":218,"title":"CORS issue with local host","user":{"login":"efealatan","id":6711667,"avatar_url":"https://avatars.githubusercontent.com/u/6711667?v=3","gravatar_id":"","url":"https://api.github.com/users/efealatan","html_url":"https://github.com/efealatan","followers_url":"https://api.github.com/users/efealatan/followers","following_url":"https://api.github.com/users/efealatan/following{/other_user}","gists_url":"https://api.github.com/users/efealatan/gists{/gist_id}","starred_url":"https://api.github.com/users/efealatan/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/efealatan/subscriptions","organizations_url":"https://api.github.com/users/efealatan/orgs","repos_url":"https://api.github.com/users/efealatan/repos","events_url":"https://api.github.com/users/efealatan/events{/privacy}","received_events_url":"https://api.github.com/users/efealatan/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":1,"created_at":"2016-06-24T00:03:22Z","updated_at":"2016-06-24T01:53:06Z","closed_at":null,"body":"Hello,\r\n\r\ni am trying to use the cors to use with local development as i am using node to serve the web app and am using iris as the api server and when i try and set the default or\r\n\r\n crs := cors.New(cors.Options{\r\n            AllowedOrigins: []string{\"http://localhost:8090\"},\r\n            Debug: true,\r\n        })\r\n    iris.Use(crs) \r\n\r\nthe browser still gives cors error\r\n\r\nany help would be appreciated \r\n\r\n<bountysource-plugin>\r\n---\r\nWant to back this issue? **[Post a bounty on it!](https://www.bountysource.com/issues/35445213-cors-issue-with-local-host?utm_campaign=plugin&utm_content=tracker%2F30189074&utm_medium=issues&utm_source=github)** We accept bounties via [Bountysource](https://www.bountysource.com/?utm_campaign=plugin&utm_content=tracker%2F30189074&utm_medium=issues&utm_source=github).\r\n</bountysource-plugin>"},"comment":{"url":"https://api.github.com/repos/kataras/iris/issues/comments/228236435","html_url":"https://github.com/kataras/iris/issues/218#issuecomment-228236435","issue_url":"https://api.github.com/repos/kataras/iris/issues/218","id":228236435,"user":{"login":"kataras","id":2321588,"avatar_url":"https://avatars.githubusercontent.com/u/2321588?v=3","gravatar_id":"","url":"https://api.github.com/users/kataras","html_url":"https://github.com/kataras","followers_url":"https://api.github.com/users/kataras/followers","following_url":"https://api.github.com/users/kataras/following{/other_user}","gists_url":"https://api.github.com/users/kataras/gists{/gist_id}","starred_url":"https://api.github.com/users/kataras/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/kataras/subscriptions","organizations_url":"https://api.github.com/users/kataras/orgs","repos_url":"https://api.github.com/users/kataras/repos","events_url":"https://api.github.com/users/kataras/events{/privacy}","received_events_url":"https://api.github.com/users/kataras/received_events","type":"User","site_admin":false},"created_at":"2016-06-24T01:53:06Z","updated_at":"2016-06-24T01:53:06Z","body":"Hello @efealatan try to do ` iris.Any` instead of ` iris.Get` to register your routes and tell me if that fixes the issue "}}
{"actor":{"display_login":"kataras"}}