ill just look tommorow

This commit is contained in:
taskylizard 2023-11-04 23:53:34 +05:30
parent 46ab0a1e98
commit 23878e3f3e
No known key found for this signature in database
GPG Key ID: 5CABA3D642DDC497
2 changed files with 0 additions and 11 deletions

View File

@ -1,9 +0,0 @@
export default defineEventHandler(async (event) => {
return new Response("", {
status: 200,
headers: {
"Access-Control-Allow-Origin": "*",
"Access-Control-Allow-Methods": "POST,PATCH,OPTIONS",
},
});
});

View File

@ -24,8 +24,6 @@ function getFeedbackOption(value: string) {
}
export default defineEventHandler(async (event) => {
if (event.headers.get("sec-fetch-mode") === "cors") return sendNoContent(event, 200);
const { message, contactEmail, feedbackType } = await readBody<Feedback>(event);
const env = useRuntimeConfig(event);