cors is cringe (#868)

This commit is contained in:
Brendan Allan
2023-05-26 17:21:16 +08:00
committed by GitHub
parent 2d7206b476
commit d5f4183d33

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({