Removed public script. Added no-cors to fetch.

This commit is contained in:
Mike Cao 2020-07-18 03:01:18 -07:00
parent 822d46a2e0
commit 70a239b0dc
3 changed files with 2 additions and 1 deletions

View file

@ -14,6 +14,7 @@ const {
function post(url, params) {
return fetch(url, {
method: 'post',
mode: 'no-cors',
body: JSON.stringify(params),
}).then(res => res.json());
}