Fix tunnel health check
This commit is contained in:
@@ -1,5 +1,15 @@
|
||||
import { NextResponse } from "next/server";
|
||||
|
||||
const CORS_HEADERS = {
|
||||
"Access-Control-Allow-Origin": "*",
|
||||
"Access-Control-Allow-Methods": "GET, OPTIONS",
|
||||
"Access-Control-Allow-Headers": "*",
|
||||
};
|
||||
|
||||
export async function GET() {
|
||||
return NextResponse.json({ ok: true });
|
||||
return NextResponse.json({ ok: true }, { headers: CORS_HEADERS });
|
||||
}
|
||||
|
||||
export async function OPTIONS() {
|
||||
return new NextResponse(null, { status: 204, headers: CORS_HEADERS });
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user