{"action":"created","issue":{"url":"https://api.github.com/repos/Hypertopic/Porphyry/issues/113","repository_url":"https://api.github.com/repos/Hypertopic/Porphyry","labels_url":"https://api.github.com/repos/Hypertopic/Porphyry/issues/113/labels{/name}","comments_url":"https://api.github.com/repos/Hypertopic/Porphyry/issues/113/comments","events_url":"https://api.github.com/repos/Hypertopic/Porphyry/issues/113/events","html_url":"https://github.com/Hypertopic/Porphyry/issues/113","id":332969669,"node_id":"MDU6SXNzdWUzMzI5Njk2Njk=","number":113,"title":"BUG?: CORS request","user":{"login":"perfectstrong","id":23375518,"node_id":"MDQ6VXNlcjIzMzc1NTE4","avatar_url":"https://avatars3.githubusercontent.com/u/23375518?v=4","gravatar_id":"","url":"https://api.github.com/users/perfectstrong","html_url":"https://github.com/perfectstrong","followers_url":"https://api.github.com/users/perfectstrong/followers","following_url":"https://api.github.com/users/perfectstrong/following{/other_user}","gists_url":"https://api.github.com/users/perfectstrong/gists{/gist_id}","starred_url":"https://api.github.com/users/perfectstrong/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/perfectstrong/subscriptions","organizations_url":"https://api.github.com/users/perfectstrong/orgs","repos_url":"https://api.github.com/users/perfectstrong/repos","events_url":"https://api.github.com/users/perfectstrong/events{/privacy}","received_events_url":"https://api.github.com/users/perfectstrong/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":4,"created_at":"2018-06-16T07:59:44Z","updated_at":"2018-06-18T18:35:37Z","closed_at":null,"author_association":"CONTRIBUTOR","body":"When i try this piece of code to delete a viewpoint\r\n````javascript\r\n      hypertopic.get({ _id: this.props.viewpoint.id })\r\n        .then(hypertopic.delete)\r\n        .then(_ => this.props.onDeleteHandler())\r\n        .catch(err => {\r\n          console.error(err);\r\n          window.alert(\"Erreur lors de la suppression\");\r\n        });\r\n````\r\nThe navigateur blocks my request with this reasonning:\r\n\r\n> Blocage d’une requête multiorigines (Cross-Origin Request) : la politique « Same Origin » ne permet pas de consulter la ressource distante située sur http://argos2.test.hypertopic.org/3da79aca2107ccd0c42d9d775853d130. Raison : échec du canal de pré-vérification des requêtes CORS.\r\n\r\nIs this the default behavior of server or just i made mistakes somewhere?\r\n\r\nP/s: the delete request on RESTClient of FF still works."},"comment":{"url":"https://api.github.com/repos/Hypertopic/Porphyry/issues/comments/398152892","html_url":"https://github.com/Hypertopic/Porphyry/issues/113#issuecomment-398152892","issue_url":"https://api.github.com/repos/Hypertopic/Porphyry/issues/113","id":398152892,"node_id":"MDEyOklzc3VlQ29tbWVudDM5ODE1Mjg5Mg==","user":{"login":"benel","id":597307,"node_id":"MDQ6VXNlcjU5NzMwNw==","avatar_url":"https://avatars0.githubusercontent.com/u/597307?v=4","gravatar_id":"","url":"https://api.github.com/users/benel","html_url":"https://github.com/benel","followers_url":"https://api.github.com/users/benel/followers","following_url":"https://api.github.com/users/benel/following{/other_user}","gists_url":"https://api.github.com/users/benel/gists{/gist_id}","starred_url":"https://api.github.com/users/benel/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/benel/subscriptions","organizations_url":"https://api.github.com/users/benel/orgs","repos_url":"https://api.github.com/users/benel/repos","events_url":"https://api.github.com/users/benel/events{/privacy}","received_events_url":"https://api.github.com/users/benel/received_events","type":"User","site_admin":false},"created_at":"2018-06-18T18:35:37Z","updated_at":"2018-06-18T18:35:37Z","author_association":"MEMBER","body":"Solution found!"}}
{"actor":{"display_login":"benel"}}