try again
This commit is contained in:
parent
f3351cabc4
commit
1ab65bb898
@ -46,6 +46,8 @@ async function handleSubmit(type?: string) {
|
|||||||
const response = await fetch("https://feedback.tasky.workers.dev", {
|
const response = await fetch("https://feedback.tasky.workers.dev", {
|
||||||
method: "POST",
|
method: "POST",
|
||||||
headers: {
|
headers: {
|
||||||
|
"Access-Control-Allow-Origin": "*",
|
||||||
|
"Access-Control-Allow-Methods": "POST",
|
||||||
"Content-Type": "application/json",
|
"Content-Type": "application/json",
|
||||||
},
|
},
|
||||||
body: JSON.stringify(body),
|
body: JSON.stringify(body),
|
||||||
|
@ -6,11 +6,7 @@ export default defineNitroConfig({
|
|||||||
srcDir: ".vitepress",
|
srcDir: ".vitepress",
|
||||||
routeRules: {
|
routeRules: {
|
||||||
"/": {
|
"/": {
|
||||||
cors: true,
|
cors: false,
|
||||||
headers: {
|
|
||||||
"Access-Control-Allow-Origin": "*",
|
|
||||||
"Access-Control-Allow-Methods": "POST",
|
|
||||||
},
|
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
});
|
});
|
||||||
|
Loading…
Reference in New Issue
Block a user