{"action":"created","issue":{"url":"https://api.github.com/repos/ParsePlatform/parse-server/issues/2448","repository_url":"https://api.github.com/repos/ParsePlatform/parse-server","labels_url":"https://api.github.com/repos/ParsePlatform/parse-server/issues/2448/labels{/name}","comments_url":"https://api.github.com/repos/ParsePlatform/parse-server/issues/2448/comments","events_url":"https://api.github.com/repos/ParsePlatform/parse-server/issues/2448/events","html_url":"https://github.com/ParsePlatform/parse-server/issues/2448","id":169328120,"number":2448,"title":"Error: Can't set headers after they are sent. CORS","user":{"login":"benishak","id":5909357,"avatar_url":"https://avatars.githubusercontent.com/u/5909357?v=3","gravatar_id":"","url":"https://api.github.com/users/benishak","html_url":"https://github.com/benishak","followers_url":"https://api.github.com/users/benishak/followers","following_url":"https://api.github.com/users/benishak/following{/other_user}","gists_url":"https://api.github.com/users/benishak/gists{/gist_id}","starred_url":"https://api.github.com/users/benishak/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/benishak/subscriptions","organizations_url":"https://api.github.com/users/benishak/orgs","repos_url":"https://api.github.com/users/benishak/repos","events_url":"https://api.github.com/users/benishak/events{/privacy}","received_events_url":"https://api.github.com/users/benishak/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":1,"created_at":"2016-08-04T09:15:25Z","updated_at":"2016-08-04T09:15:54Z","closed_at":null,"body":"# Env\r\nParse Server 2.2.17\r\nAWS CentOS NGINX\r\n\r\n# Problem\r\nI'm getting this error in the console\r\n\r\n```\r\nError: Can't set headers after they are sent.\r\n    at ServerResponse.OutgoingMessage.setHeader (_http_outgoing.js:344:11)\r\n    at applyHeaders (/home/centos/apps/parse-server-dev/source/node_modules/cors/lib/index.js:146:15)\r\n    at applyHeaders (/home/centos/apps/parse-server-dev/source/node_modules/cors/lib/index.js:142:11)\r\n    at applyHeaders (/home/centos/apps/parse-server-dev/source/node_modules/cors/lib/index.js:142:11)\r\n    at cors (/home/centos/apps/parse-server-dev/source/node_modules/cors/lib/index.js:177:7)\r\n    at /home/centos/apps/parse-server-dev/source/node_modules/cors/lib/index.js:228:17\r\n    at originCallback (/home/centos/apps/parse-server-dev/source/node_modules/cors/lib/index.js:217:15)\r\n    at /home/centos/apps/parse-server-dev/source/node_modules/cors/lib/index.js:222:13\r\n    at optionsCallback (/home/centos/apps/parse-server-dev/source/node_modules/cors/lib/index.js:203:9)\r\n    at Object.handle (/home/centos/apps/parse-server-dev/source/node_modules/cors/lib/index.js:208:7)\r\n```\r\n\r\nafter downgrading to version `2.2.16`. The error goes away!\r\n\r\n# Reproduce\r\nUpgrade to 2.2.17"},"comment":{"url":"https://api.github.com/repos/ParsePlatform/parse-server/issues/comments/237498538","html_url":"https://github.com/ParsePlatform/parse-server/issues/2448#issuecomment-237498538","issue_url":"https://api.github.com/repos/ParsePlatform/parse-server/issues/2448","id":237498538,"user":{"login":"benishak","id":5909357,"avatar_url":"https://avatars.githubusercontent.com/u/5909357?v=3","gravatar_id":"","url":"https://api.github.com/users/benishak","html_url":"https://github.com/benishak","followers_url":"https://api.github.com/users/benishak/followers","following_url":"https://api.github.com/users/benishak/following{/other_user}","gists_url":"https://api.github.com/users/benishak/gists{/gist_id}","starred_url":"https://api.github.com/users/benishak/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/benishak/subscriptions","organizations_url":"https://api.github.com/users/benishak/orgs","repos_url":"https://api.github.com/users/benishak/repos","events_url":"https://api.github.com/users/benishak/events{/privacy}","received_events_url":"https://api.github.com/users/benishak/received_events","type":"User","site_admin":false},"created_at":"2016-08-04T09:15:54Z","updated_at":"2016-08-04T09:15:54Z","body":"https://github.com/expressjs/express/issues/751"}}
{"actor":{"display_login":"benishak"}}