updates
This commit is contained in:
parent
44729c6844
commit
d636a41324
@ -5,8 +5,8 @@ import { NextApiHandler, NextApiRequest, NextApiResponse } from "next";
|
|||||||
*/
|
*/
|
||||||
export default function handler(req: NextApiRequest, res: NextApiResponse) {
|
export default function handler(req: NextApiRequest, res: NextApiResponse) {
|
||||||
res.setHeader("Access-Control-Allow-Origin", "*");
|
res.setHeader("Access-Control-Allow-Origin", "*");
|
||||||
res.setHeader("Access-Control-Allow-Methods", "GET,OPTIONS");
|
res.setHeader("Access-Control-Allow-Methods", "*");
|
||||||
res.setHeader("Access-Control-Allow-Headers", "X-Requested-With,content-type");
|
res.setHeader("Access-Control-Allow-Headers", "*");
|
||||||
|
|
||||||
res.status(200).json({
|
res.status(200).json({
|
||||||
title: "Hello There",
|
title: "Hello There",
|
||||||
|
Loading…
Reference in New Issue
Block a user