add no cors to post request

This commit is contained in:
Hepatica
2023-12-02 02:41:30 +01:00
parent 40e369ea12
commit 963e563855
2 changed files with 2 additions and 1 deletions

View File

@@ -5,6 +5,7 @@ export async function Post(url = "", data = {}) {
try {
const response = await fetch(url, {
method: "POST",
mode: 'no-cors',
headers: {
"Content-Type": "application/json",
},