This commit is contained in:
Rafi
2023-03-03 00:10:50 +08:00
parent 3b6c48a776
commit ef6657187a
2 changed files with 1 additions and 2 deletions

View File

@@ -54,7 +54,7 @@ export default defineNuxtConfig({
"/api": { "/api": {
target: "http://localhost:8000/api", target: "http://localhost:8000/api",
prependPath: true, prependPath: true,
changeOrigin: true changeOrigin: true,
} }
} }

View File

@@ -78,7 +78,6 @@ const submit = async () => {
submitting.value = true submitting.value = true
const { data, error } = await useFetch('/api/account/login/', { const { data, error } = await useFetch('/api/account/login/', {
method: 'POST', method: 'POST',
credentials: 'omit',
body: JSON.stringify(formData.value) body: JSON.stringify(formData.value)
}) })
if (error.value) { if (error.value) {