{"action":"opened","issue":{"url":"https://api.github.com/repos/iris-contrib/middleware/issues/34","repository_url":"https://api.github.com/repos/iris-contrib/middleware","labels_url":"https://api.github.com/repos/iris-contrib/middleware/issues/34/labels{/name}","comments_url":"https://api.github.com/repos/iris-contrib/middleware/issues/34/comments","events_url":"https://api.github.com/repos/iris-contrib/middleware/issues/34/events","html_url":"https://github.com/iris-contrib/middleware/issues/34","id":293680960,"number":34,"title":"CORS Issue on PreFlight Request","user":{"login":"melihmucuk","id":3147488,"avatar_url":"https://avatars2.githubusercontent.com/u/3147488?v=4","gravatar_id":"","url":"https://api.github.com/users/melihmucuk","html_url":"https://github.com/melihmucuk","followers_url":"https://api.github.com/users/melihmucuk/followers","following_url":"https://api.github.com/users/melihmucuk/following{/other_user}","gists_url":"https://api.github.com/users/melihmucuk/gists{/gist_id}","starred_url":"https://api.github.com/users/melihmucuk/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/melihmucuk/subscriptions","organizations_url":"https://api.github.com/users/melihmucuk/orgs","repos_url":"https://api.github.com/users/melihmucuk/repos","events_url":"https://api.github.com/users/melihmucuk/events{/privacy}","received_events_url":"https://api.github.com/users/melihmucuk/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":0,"created_at":"2018-02-01T20:57:35Z","updated_at":"2018-02-01T20:57:35Z","closed_at":null,"author_association":"NONE","body":"AllowedMethods don't work.\r\n\r\nError message from React: \r\n\r\n> Failed to load http://localhost:5000/api/v1/auth/login: Response to preflight request doesn't pass access control check: No 'Access-Control-Allow-Origin' header is present on the requested resource. Origin 'http://localhost:3000' is therefore not allowed access.\r\n\r\n\r\n```\r\napp := iris.New()\r\napp.WrapRouter(cors.WrapNext(cors.Options{\r\n     AllowedOrigins: []string{\"*\"},\r\n     AllowedMethods: []string{\"GET\", \"POST\", \"PUT\", \"PATCH\", \"DELETE\"},\r\n}))\r\n```"}}
{"actor":{"display_login":"melihmucuk"}}