{"action":"created","issue":{"url":"https://api.github.com/repos/strongloop/loopback/issues/1810","repository_url":"https://api.github.com/repos/strongloop/loopback","labels_url":"https://api.github.com/repos/strongloop/loopback/issues/1810/labels{/name}","comments_url":"https://api.github.com/repos/strongloop/loopback/issues/1810/comments","events_url":"https://api.github.com/repos/strongloop/loopback/issues/1810/events","html_url":"https://github.com/strongloop/loopback/issues/1810","id":116421310,"number":1810,"title":"Setting cors:true in config.json throws exception","user":{"login":"barocsi","id":851560,"avatar_url":"https://avatars.githubusercontent.com/u/851560?v=3","gravatar_id":"","url":"https://api.github.com/users/barocsi","html_url":"https://github.com/barocsi","followers_url":"https://api.github.com/users/barocsi/followers","following_url":"https://api.github.com/users/barocsi/following{/other_user}","gists_url":"https://api.github.com/users/barocsi/gists{/gist_id}","starred_url":"https://api.github.com/users/barocsi/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/barocsi/subscriptions","organizations_url":"https://api.github.com/users/barocsi/orgs","repos_url":"https://api.github.com/users/barocsi/repos","events_url":"https://api.github.com/users/barocsi/events{/privacy}","received_events_url":"https://api.github.com/users/barocsi/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/strongloop/loopback/labels/triage","name":"triage","color":"eb6420"},{"url":"https://api.github.com/repos/strongloop/loopback/labels/waiting","name":"waiting","color":"eeeeee"}],"state":"closed","locked":false,"assignee":{"login":"loay","id":1986928,"avatar_url":"https://avatars.githubusercontent.com/u/1986928?v=3","gravatar_id":"","url":"https://api.github.com/users/loay","html_url":"https://github.com/loay","followers_url":"https://api.github.com/users/loay/followers","following_url":"https://api.github.com/users/loay/following{/other_user}","gists_url":"https://api.github.com/users/loay/gists{/gist_id}","starred_url":"https://api.github.com/users/loay/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/loay/subscriptions","organizations_url":"https://api.github.com/users/loay/orgs","repos_url":"https://api.github.com/users/loay/repos","events_url":"https://api.github.com/users/loay/events{/privacy}","received_events_url":"https://api.github.com/users/loay/received_events","type":"User","site_admin":false},"milestone":null,"comments":8,"created_at":"2015-11-11T21:05:54Z","updated_at":"2016-03-19T11:48:06Z","closed_at":"2015-12-01T15:50:22Z","body":"\\node_modules\\cors\\lib\\index.js:188\r\n      o.origin = defaults.origin;\r\n               ^\r\nTypeError: Cannot assign to read only property 'origin' of true\r\n    at middlewareWrapper (\\node_modules\\cors\\lib\\index.js:188:16)\r\n    at setupCors (\\node_modules\\loopback-explorer\\lib\\swagger.js:145:18)\r\n[..]\r\n\r\n    \"loopback-boot\": \"^2.6.5\",\r\n    \"loopback-component-passport\": \"^1.5.0\",\r\n    \"loopback-connector-mongodb\": \"1.13.0\",\r\n    \"loopback-datasource-juggler\": \"^2.41.1\","},"comment":{"url":"https://api.github.com/repos/strongloop/loopback/issues/comments/198688667","html_url":"https://github.com/strongloop/loopback/issues/1810#issuecomment-198688667","issue_url":"https://api.github.com/repos/strongloop/loopback/issues/1810","id":198688667,"user":{"login":"moklick","id":2857535,"avatar_url":"https://avatars.githubusercontent.com/u/2857535?v=3","gravatar_id":"","url":"https://api.github.com/users/moklick","html_url":"https://github.com/moklick","followers_url":"https://api.github.com/users/moklick/followers","following_url":"https://api.github.com/users/moklick/following{/other_user}","gists_url":"https://api.github.com/users/moklick/gists{/gist_id}","starred_url":"https://api.github.com/users/moklick/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/moklick/subscriptions","organizations_url":"https://api.github.com/users/moklick/orgs","repos_url":"https://api.github.com/users/moklick/repos","events_url":"https://api.github.com/users/moklick/events{/privacy}","received_events_url":"https://api.github.com/users/moklick/received_events","type":"User","site_admin":false},"created_at":"2016-03-19T11:48:06Z","updated_at":"2016-03-19T11:48:06Z","body":"I am having the same issue. I can't set cors: true in the config.json\r\n```\r\n.../strongloop-app/node_modules/cors/lib/index.js:188\r\n      o.origin = defaults.origin;\r\n               ^\r\n\r\nTypeError: Cannot assign to read only property 'origin' of true\r\n```"}}