chrome mobile jquery ajax post не работает = кажется, что это должна быть та же проблема, но Asker, по -видимому, не смог воспроизвести после публикации на удаленном сервере. (не https ).
Прохождение веб -клиента находится на chrome macos версии 135.0.7049.85 .
Проватный веб -клиент находится на Chrome ios версии 135.0.7049.83 . and returning response.
I tried disabling "safe browsing" in Chrome settings, no change.
I tried replacing $.ajax with fetch, no change.
Web client
HTML
Код: Выделить всё
< /code>
js < /h2>
async function f1() {
console.log('before request')
const res_subs = await $.ajax({
method: 'POST',
url: '/db',
data: {
endpoint: 'endpoint1',
value: 'one two',
language: 'abc'
}
})
console.log('after request')
}
Код: Выделить всё
async function f1() {
console.log('before request')
const res = await fetch(
'/db',
{
method: 'POST',
body: JSON.stringify({
endpoint: 'endpoint1',
value: 'one two',
language: 'abc'
}),
headers: [
['Content-Type', 'application/json']
]
}
)
if (!res.ok) {
throw new Error(res.statusText)
}
console.log('after request')
}
< /code>
output < /h2>
before request
< /code>
after request
Подробнее здесь: https://stackoverflow.com/questions/795 ... ios-mobile