Can I fix CORS error when making a POST request to Next.js 13.4.4 endpoint using Reactjs?
I am using Next.js version 13.4.4 and have an endpoint at http://localhost:5000/logout. In my src/app/logout/route.tsx file, I have the following code: import { NextRequest, NextResponse } from "next/server"; export async function POST(req: NextRequest) { return new NextResponse("POST: /logout"); } Now,…