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 { try {
const response = await fetch(url, { const response = await fetch(url, {
method: "POST", method: "POST",
mode: 'no-cors',
headers: { headers: {
"Content-Type": "application/json", "Content-Type": "application/json",
}, },

View File

@@ -2,7 +2,7 @@
import "@/assets/css/ComponentsStyles/header.css"; import "@/assets/css/ComponentsStyles/header.css";
// import { GetAuthCodeFromCurrentPath } from '@/assets/js/authentication/LoggingMiddleware.js'; // import { GetAuthCodeFromCurrentPath } from '@/assets/js/authentication/LoggingMiddleware.js';
import { LogIn } from "@/assets/js/authentication/AuthService.js"; import { LogIn } from "@/assets/js/authentication/AuthService.js";
import { GetCurrentMoney } from "@/assets/js/rest/RestMethods.js"; // import { GetCurrentMoney } from "@/assets/js/rest/RestMethods.js";
import { import {
SetCookie, SetCookie,
GetCookie, GetCookie,