mirror of
https://github.com/Litlyx/litlyx
synced 2025-12-10 15:58:38 +01:00
fix cors on api
This commit is contained in:
@@ -6,7 +6,7 @@ import { useCors } from '~/server/utils/useCors';
|
||||
|
||||
export default defineEventHandler(async event => {
|
||||
|
||||
useCors(event);
|
||||
if (useCors(event)) return '';
|
||||
|
||||
const { row, from, to, limit } = getQuery(event);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user