This commit is contained in:
Tben 2023-08-21 09:22:04 +01:00
parent 44729c6844
commit d636a41324

View File

@ -5,8 +5,8 @@ import { NextApiHandler, NextApiRequest, NextApiResponse } from "next";
*/
export default function handler(req: NextApiRequest, res: NextApiResponse) {
res.setHeader("Access-Control-Allow-Origin", "*");
res.setHeader("Access-Control-Allow-Methods", "GET,OPTIONS");
res.setHeader("Access-Control-Allow-Headers", "X-Requested-With,content-type");
res.setHeader("Access-Control-Allow-Methods", "*");
res.setHeader("Access-Control-Allow-Headers", "*");
res.status(200).json({
title: "Hello There",