for cors?

This commit is contained in:
cutls 2021-02-16 22:32:58 +09:00
parent c2519f2dff
commit b822eb9cbf

View File

@ -1112,7 +1112,8 @@ input.addEventListener(
method: 'GET', method: 'GET',
headers: { headers: {
'content-type': 'application/json', 'content-type': 'application/json',
} },
cors: true
}) })
.then(function (response) { .then(function (response) {
if (!response.ok) { if (!response.ok) {