{"action":"closed","issue":{"url":"https://api.github.com/repos/Automattic/wp-desktop/issues/478","repository_url":"https://api.github.com/repos/Automattic/wp-desktop","labels_url":"https://api.github.com/repos/Automattic/wp-desktop/issues/478/labels{/name}","comments_url":"https://api.github.com/repos/Automattic/wp-desktop/issues/478/comments","events_url":"https://api.github.com/repos/Automattic/wp-desktop/issues/478/events","html_url":"https://github.com/Automattic/wp-desktop/issues/478","id":342750473,"node_id":"MDU6SXNzdWUzNDI3NTA0NzM=","number":478,"title":"Change secrets instructions to add http://calypso.localhost:3000 to 'Redirect URLs' and 'JavaScript Origins' fields","user":{"login":"ockham","id":96308,"node_id":"MDQ6VXNlcjk2MzA4","avatar_url":"https://avatars2.githubusercontent.com/u/96308?v=4","gravatar_id":"","url":"https://api.github.com/users/ockham","html_url":"https://github.com/ockham","followers_url":"https://api.github.com/users/ockham/followers","following_url":"https://api.github.com/users/ockham/following{/other_user}","gists_url":"https://api.github.com/users/ockham/gists{/gist_id}","starred_url":"https://api.github.com/users/ockham/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ockham/subscriptions","organizations_url":"https://api.github.com/users/ockham/orgs","repos_url":"https://api.github.com/users/ockham/repos","events_url":"https://api.github.com/users/ockham/events{/privacy}","received_events_url":"https://api.github.com/users/ockham/received_events","type":"User","site_admin":false},"labels":[{"id":298364191,"node_id":"MDU6TGFiZWwyOTgzNjQxOTE=","url":"https://api.github.com/repos/Automattic/wp-desktop/labels/[Type]%20Bug","name":"[Type] Bug","color":"fc2929","default":false}],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":1,"created_at":"2018-07-19T14:23:32Z","updated_at":"2018-08-03T11:06:26Z","closed_at":"2018-08-03T11:06:26Z","author_association":"CONTRIBUTOR","body":"While reviewing #477 (following setup instructions found at p4TIVU-906-p2), I [couldn't get the app to properly run](https://github.com/Automattic/wp-desktop/pull/477#issuecomment-406275378). The same issue was also present on `master`:\r\n\r\n![image](https://user-images.githubusercontent.com/96308/42944847-0c79a80e-8b67-11e8-9bf2-5ad8bd0844d5.png)\r\n\r\n('Try again' would yield the same screen.)\r\n\r\nFiring up the dev console (Ctrl+Shift+I), I got \r\n\r\n> `public-api.wordpress.com/rest/v1.1/me?meta=flags&<REDACTED>` Failed to load resource: the server responded with a status of 405 ()\r\n> Failed to load resource: the server responded with a status of 405 ()\r\n\r\nand\r\n\r\n> XMLHttpRequest cannot load `https://public-api.wordpress.com/rest/v1.1/me?meta=flags&<REDACTED>`. No 'Access-Control-Allow-Origin' header is present on the requested resource. Origin 'http://calypso.localhost:3000' is therefore not allowed access. The response had HTTP status code 405.\r\n\r\nI was able to get this to work by adding `http://calypso.localhost:3000` to both 'Redirect URLs' and 'JavaScript Origins', (contrarily to what [the docs](https://github.com/Automattic/wp-desktop/blob/develop/docs/secrets.md) currently suggest)\r\n\r\n![image](https://user-images.githubusercontent.com/96308/42948173-3a93b8f8-8b6f-11e8-9c69-8d795eb125c4.png)\r\n\r\nDo we need to change secrets instructions accordingly?\r\n\r\n/cc @adlk @sirreal @jsnajdr @astralbodies "}}
{"actor":{"display_login":"adlk"}}