The Postgres development platform. Supabase gives you a dedicated Postgres database to build your web, mobile, and AI applications.
TypeScript aialternativeauthdatabasedenoembeddingsexamplefirebasenextjsoauth2pgvectorpostgispostgrespostgresqlpostgrestrealtimesupabasevectorswebsockets
Added a suggestion on CORS
Lakshan Perera3404f5f76393
diff --git a/apps/reference/docs/guides/functions.mdx b/apps/reference/docs/guides/functions.mdxindex 7321cfc957d..8cbf3cb34e0 100644--- a/apps/reference/docs/guides/functions.mdx+++ b/apps/reference/docs/guides/functions.mdx@@ -285,6 +285,10 @@ We recommend developing “fat functions”. This means that you should developWe recommend using hyphens to name functions because hyphens are the most URL-friendly of all the naming conventions (snake_case, camelCase, PascalCase).+### CORS (Cross-Origin Resource Sharing)++We recommend adding a check to handle [CORS Preflight](https://developer.mozilla.org/en-US/docs/Glossary/Preflight_request) requests in your edge function. Otherwise you won't be able to invoke the function from browsers. Check this [code snippet for a example implemention](https://github.com/supabase/supabase/blob/master/examples/edge-functions/supabase/functions/browser-with-cors/index.ts#L11-L14).+## Limitations- Deno Deploy limitations