mirror of
https://github.com/yawaflua/LuckyDiamond.git
synced 2025-12-10 12:19:31 +02:00
add no cors to post request
This commit is contained in:
@@ -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",
|
||||
},
|
||||
|
||||
@@ -2,7 +2,7 @@
|
||||
import "@/assets/css/ComponentsStyles/header.css";
|
||||
// import { GetAuthCodeFromCurrentPath } from '@/assets/js/authentication/LoggingMiddleware.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 {
|
||||
SetCookie,
|
||||
GetCookie,
|
||||
|
||||
Reference in New Issue
Block a user