ill just look tommorow
This commit is contained in:
parent
46ab0a1e98
commit
23878e3f3e
@ -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",
|
||||
},
|
||||
});
|
||||
});
|
@ -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);
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user