Skip to content

Commit e0c3928

Browse files
committed
revert origin check
1 parent 839b831 commit e0c3928

File tree

1 file changed

+5
-3
lines changed

1 file changed

+5
-3
lines changed

app/api/graphql/route.ts

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -9,9 +9,11 @@ export async function POST(req: NextRequest) {
99
const protocol = req.headers.get('x-forwarded-proto') || 'https';
1010
const expectedOrigin = `${protocol}://${host}`;
1111

12-
if (!origin || !origin.startsWith(expectedOrigin)) {
13-
return NextResponse.json({ error: 'Forbidden' }, { status: 403 });
14-
}
12+
console.log('origin', origin, expectedOrigin);
13+
14+
// if (!origin || !origin.startsWith(expectedOrigin)) {
15+
// return NextResponse.json({ error: 'Forbidden' }, { status: 403 });
16+
// }
1517
}
1618

1719
try {

0 commit comments

Comments
 (0)