cors trial 999
This commit is contained in:
parent
19aeb01801
commit
f3351cabc4
@ -24,6 +24,8 @@ 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