{"action":"opened","issue":{"url":"https://api.github.com/repos/github/fetch/issues/423","repository_url":"https://api.github.com/repos/github/fetch","labels_url":"https://api.github.com/repos/github/fetch/issues/423/labels{/name}","comments_url":"https://api.github.com/repos/github/fetch/issues/423/comments","events_url":"https://api.github.com/repos/github/fetch/issues/423/events","html_url":"https://github.com/github/fetch/issues/423","id":186448370,"number":423,"title":"PUT becomes OPTIONS","user":{"login":"TyraelYoung","id":14245829,"avatar_url":"https://avatars.githubusercontent.com/u/14245829?v=3","gravatar_id":"","url":"https://api.github.com/users/TyraelYoung","html_url":"https://github.com/TyraelYoung","followers_url":"https://api.github.com/users/TyraelYoung/followers","following_url":"https://api.github.com/users/TyraelYoung/following{/other_user}","gists_url":"https://api.github.com/users/TyraelYoung/gists{/gist_id}","starred_url":"https://api.github.com/users/TyraelYoung/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/TyraelYoung/subscriptions","organizations_url":"https://api.github.com/users/TyraelYoung/orgs","repos_url":"https://api.github.com/users/TyraelYoung/repos","events_url":"https://api.github.com/users/TyraelYoung/events{/privacy}","received_events_url":"https://api.github.com/users/TyraelYoung/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":0,"created_at":"2016-11-01T02:26:21Z","updated_at":"2016-11-01T02:26:21Z","closed_at":null,"body":"js code :       \r\n\r\nfetch(URL_SET_DEFAULT , {\r\n            method: 'PUT',\r\n            credentials: 'same-origin',\r\n            body: formData,\r\n        }).then((response) => {\r\n            if (response.ok) {\r\n                return response.json();\r\n            }\r\n        }).then((json) => {\r\n            alert(JSON.stringify(json.msg));\r\n        }).catch((error) => {\r\n            console.error(error);\r\n        });\r\n\r\nchrome devtools show the general info\r\nRequest URL:http://api.ssb2.test.csmall.com/member/bank/default\r\nRequest Method:OPTIONS\r\nStatus Code:405 \r\nRemote Address:120.24.251.82:80\r\n\r\nso the problem is  the client \"PUT\" becomes \"OPTIONS\" in the server side."}}
{"actor":{"display_login":"TyraelYoung"}}