Skip to content

Commit b561e73

Browse files
authored
eng-1422: Add obsidian to cors in create-space (#772)
1 parent e86b1c5 commit b561e73

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

  • packages/database/supabase/functions/create-space

packages/database/supabase/functions/create-space/index.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -183,7 +183,7 @@ const processAndGetOrCreateSpace = async (
183183
};
184184

185185
// The following lines are duplicated from apps/website/app/utils/llm/cors.ts
186-
const allowedOrigins = ["https://roamresearch.com", "http://localhost:3000"];
186+
const allowedOrigins = ["https://roamresearch.com", "http://localhost:3000", "app://obsidian.md"];
187187

188188
const isVercelPreviewUrl = (origin: string): boolean =>
189189
/^https:\/\/.*-discourse-graph-[a-z0-9]+\.vercel\.app$/.test(origin);

0 commit comments

Comments
 (0)