We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 839b831 commit e0c3928Copy full SHA for e0c3928
app/api/graphql/route.ts
@@ -9,9 +9,11 @@ export async function POST(req: NextRequest) {
9
const protocol = req.headers.get('x-forwarded-proto') || 'https';
10
const expectedOrigin = `${protocol}://${host}`;
11
12
- if (!origin || !origin.startsWith(expectedOrigin)) {
13
- return NextResponse.json({ error: 'Forbidden' }, { status: 403 });
14
- }
+ console.log('origin', origin, expectedOrigin);
+
+ // if (!origin || !origin.startsWith(expectedOrigin)) {
15
+ // return NextResponse.json({ error: 'Forbidden' }, { status: 403 });
16
+ // }
17
}
18
19
try {
0 commit comments