try again

This commit is contained in:
taskylizard 2023-11-04 23:41:37 +05:30
parent f3351cabc4
commit 1ab65bb898
No known key found for this signature in database
GPG Key ID: 5CABA3D642DDC497
2 changed files with 3 additions and 5 deletions

View File

@ -46,6 +46,8 @@ async function handleSubmit(type?: string) {
const response = await fetch("https://feedback.tasky.workers.dev", {
method: "POST",
headers: {
"Access-Control-Allow-Origin": "*",
"Access-Control-Allow-Methods": "POST",
"Content-Type": "application/json",
},
body: JSON.stringify(body),

View File

@ -6,11 +6,7 @@ export default defineNitroConfig({
srcDir: ".vitepress",
routeRules: {
"/": {
cors: true,
headers: {
"Access-Control-Allow-Origin": "*",
"Access-Control-Allow-Methods": "POST",
},
cors: false,
},
},
});