diff --git a/resources/views/chat/frame.blade.php b/resources/views/chat/frame.blade.php index adff3bb..dbac1f8 100644 --- a/resources/views/chat/frame.blade.php +++ b/resources/views/chat/frame.blade.php @@ -221,7 +221,9 @@ async loadWhispers() { try { - const res = await fetch('/command/whispers/' + encodeURIComponent(this.userInfo.username)); + const res = await fetch('/command/whispers/' + encodeURIComponent(this.userInfo.username), { + headers: { 'Accept': 'application/json' } + }); const data = await res.json(); if (data.status === 'success') { this.whisperList = data.messages;