mirror of
https://github.com/fmhy/edit.git
synced 2026-02-19 09:41:17 +11:00
cors trial 999
This commit is contained in:
parent
19aeb01801
commit
f3351cabc4
1 changed files with 2 additions and 0 deletions
|
|
@ -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…
Add table
Add a link
Reference in a new issue