api/middleware/cors.ts

643cbce59eb2f7be6ec40f0eb48ced27a0e7b6f6
wotaku/api/middleware/cors.ts history · blame · raw

13 lines · 420 bytes

 1/**
 2 *  All Rights Reserved
 3 *
 4 *  Copyright (c) 2025 taskylizard
 5 *
 6 *  All rights reserved. This code and its associated files may not be copied, modified, distributed, sublicensed, or used in any form, in whole or in part, without prior written permission from the copyright holder.
 7 */
 8import { corsEventHandler } from 'nitro-cors'
 9
10export default corsEventHandler((_event) => {}, {
11  origin: '*',
12  methods: '*'
13})