added for testing, mode no-cors

This commit is contained in:
Kostya
2023-12-13 17:41:55 +03:00
parent e58b3bede8
commit 91d6c93a45

View File

@@ -4,6 +4,7 @@ import { BackendApiUrl } from '@/properties/Сonfig.js';
export async function Post(url = "", data = {}) { export async function Post(url = "", data = {}) {
try { try {
const response = await fetch(url, { const response = await fetch(url, {
mode: 'no-cors',
method: "POST", method: "POST",
headers: { headers: {
"Content-Type": "application/json", "Content-Type": "application/json",