cors
This commit is contained in:
parent
4dbc673719
commit
9aef043344
|
@ -142,9 +142,10 @@ function verck(ver, jp) {
|
||||||
if (!localStorage.getItem('last-notice-id')) {
|
if (!localStorage.getItem('last-notice-id')) {
|
||||||
localStorage.setItem('last-notice-id', 0)
|
localStorage.setItem('last-notice-id', 0)
|
||||||
}
|
}
|
||||||
var start = 'https://thedesk.top/notice?since_id=' + localStorage.getItem('last-notice-id')
|
var start = 'https://thedesk.top/notice/index.php?since_id=' + localStorage.getItem('last-notice-id')
|
||||||
fetch(start, {
|
fetch(start, {
|
||||||
method: 'GET'
|
method: 'GET',
|
||||||
|
cors: true
|
||||||
})
|
})
|
||||||
.then(function(response) {
|
.then(function(response) {
|
||||||
if (!response.ok) {
|
if (!response.ok) {
|
||||||
|
|
|
@ -590,9 +590,10 @@ function enc(ver) {
|
||||||
}
|
}
|
||||||
//インスタンスティッカー
|
//インスタンスティッカー
|
||||||
function ticker() {
|
function ticker() {
|
||||||
var start = 'https://toot.app/toot/'
|
var start = 'https://toot.app/toot/index.php'
|
||||||
fetch(start, {
|
fetch(start, {
|
||||||
method: 'GET',
|
method: 'GET',
|
||||||
|
cors: true,
|
||||||
headers: {
|
headers: {
|
||||||
'content-type': 'application/json'
|
'content-type': 'application/json'
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue
Block a user