cors is cringe (#868)

This commit is contained in:
Brendan Allan 2023-05-26 17:21:16 +08:00 committed by GitHub
parent 1ad942bc95
commit 82f996acc3
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -25,7 +25,8 @@ export default function FeedbackDialog(props: UseDialogProps) {
try {
await fetch(FEEDBACK_URL, {
method: 'POST',
body: JSON.stringify(data)
body: JSON.stringify(data),
mode: 'no-cors'
});
} catch (error) {
showAlertDialog({