mirror of
https://github.com/supabase/supabase.git
synced 2026-10-06 01:45:10 +03:00
Update validate.ts
This commit is contained in:
1 parent
84f7b12725
commit
a7cf144052
1 file changed
+6
@@ -21,6 +21,12 @@ async function handler(req: NextApiRequest, res: NextApiResponse) {
|
||||
|
||||
const handlePost = async (req: NextApiRequest, res: NextApiResponse) => {
|
||||
const { query } = req.body
|
||||
|
||||
req.headers.origin = undefined
|
||||
req.headers.host = undefined
|
||||
|
||||
console.log('req from headers', req)
|
||||
|
||||
const headers = constructHeaders(req.headers)
|
||||
const response = await post(`${PG_META_URL}/query/parse`, { query }, { headers })
|
||||
|
||||
|
||||
Reference in new issue
Block a user