Add: some CORS error
This commit is contained in:
parent
286e7956f2
commit
a4e3031796
|
@ -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();
|
||||||
|
|
|
@ -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'
|
||||||
},
|
},
|
||||||
|
|
Loading…
Reference in New Issue
Block a user