The Postgres development platform. Supabase gives you a dedicated Postgres database to build your web, mobile, and AI applications.
TypeScript aialternativeauthdatabasedenoembeddingsexamplefirebasenextjsoauth2pgvectorpostgispostgrespostgresqlpostgrestrealtimesupabasevectorswebsockets
fix: strip out hostname
Jonathan Summers-Muirce27d96b6f4c
diff --git a/studio/lib/api/apiHelpers.ts b/studio/lib/api/apiHelpers.tsindex f2689213b13..2bf566b475c 100644--- a/studio/lib/api/apiHelpers.ts+++ b/studio/lib/api/apiHelpers.ts@@ -7,6 +7,13 @@ export function constructHeaders(headers: any) {if (headers) {return {...headers,+ /**+ * temporary removal+ * testing an additional domain for dashboard client+ *+ * @author @mildtomato+ */+ host: undefined,...(IS_PLATFORM? { apiKey: `${process.env.READ_ONLY_API_KEY}` }: { apiKey: `${process.env.SUPABASE_SERVICE_KEY}` }),diff --git a/studio/pages/api/pg-meta/[ref]/query/validate.ts b/studio/pages/api/pg-meta/[ref]/query/validate.tsindex 824e468fe83..c2cb1c1e06b 100644--- a/studio/pages/api/pg-meta/[ref]/query/validate.ts+++ b/studio/pages/api/pg-meta/[ref]/query/validate.ts@@ -22,11 +22,6 @@ 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 })