You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
👋 Hi Supabase community! I'm building a content aggregation app using no-code tools (Bolt.new and Cursor), and I'm running into CORS issues with my Edge Function.
The Setup
Frontend: React + TypeScript app deployed on Netlify (app.yfetch.com) Edge Function: Handles AI summarization using Perplexity API Authentication: Using Supabase Auth
The Issue
When trying to generate an AI summary of stored posts, I'm getting CORS errors: Access to fetch at 'https://umugzdepvpezfmnjowcn.supabase.co/functions/v1/perplexity' from origin 'https://app.yfetch.com' has been blocked by CORS policy: Response to preflight request doesn't pass access control check: No 'Access-Control-Allow-Origin' header is present on the requested resource.
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
-
👋 Hi Supabase community! I'm building a content aggregation app using no-code tools (Bolt.new and Cursor), and I'm running into CORS issues with my Edge Function.
The Setup
Frontend: React + TypeScript app deployed on Netlify (app.yfetch.com)
Edge Function: Handles AI summarization using Perplexity API
Authentication: Using Supabase Auth
The Issue
When trying to generate an AI summary of stored posts, I'm getting CORS errors:
Access to fetch at 'https://umugzdepvpezfmnjowcn.supabase.co/functions/v1/perplexity' from origin 'https://app.yfetch.com' has been blocked by CORS policy: Response to preflight request doesn't pass access control check: No 'Access-Control-Allow-Origin' header is present on the requested resource.
What I've Tried
4.Client-side request includes proper credentials:
Environment Details
Supabase Project: Production environment
Frontend Origin: https://app.yfetch.com
Edge Function URL: https://umugzdepvpezfmnjowcn.supabase.co/functions/v1/perplexity
Questions
Beta Was this translation helpful? Give feedback.
All reactions