Add: some CORS error

This commit is contained in:
Cutls 2019-09-12 21:30:48 +09:00
parent 286e7956f2
commit a4e3031796
2 changed files with 2 additions and 0 deletions

View File

@ -116,6 +116,7 @@ function verck(ver) {
} }
var start = "https://thedesk.top/notice?since_id=" + localStorage.getItem("last-notice-id"); var start = "https://thedesk.top/notice?since_id=" + localStorage.getItem("last-notice-id");
fetch(start, { fetch(start, {
mode: 'no-cors',
method: 'GET' method: 'GET'
}).then(function (response) { }).then(function (response) {
return response.json(); return response.json();

View File

@ -516,6 +516,7 @@ function ticker() {
var start = "https://toot.app/toot/"; var start = "https://toot.app/toot/";
fetch(start, { fetch(start, {
method: 'GET', method: 'GET',
mode: 'no-cors',
headers: { headers: {
'content-type': 'application/json' 'content-type': 'application/json'
}, },