© 2026 Hedgehog Software, LLC

TwitterGitHubDiscord
More
CommunitiesDocsAboutTermsPrivacy
Search
Star
Setup for Free
SupabaseS
Supabase•8mo ago•
25 replies
Ise

Problem with Storage

This is my function to get the Signed Url of a file in the storage:
const signedUrl = useCallback(
async (download = false) => {
if (!file.storage_key) throw new Error('storage_key mancante');
const { data, error } = await supabase.storage
.from(BUCKET_NAME)
.createSignedUrl(file.storage_key, 60, { download });
if (error || !data?.signedUrl)
throw error ?? new Error('URL non trovato');
return data.signedUrl;
},
[file.storage_key, supabase]
);
When this function is executed i get this error:
materiali:1 Access to fetch at 'https://supabase.justware.it/storage/v1/object/sign/public-files/Corso%20SCRATCH.pdf' from origin 'https://justware.it' 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 is the problem?
Supabase banner
SupabaseJoin
Supabase gives you the tools, documentation, and community that makes managing databases, authentication, and backend infrastructure a lot less overwhelming.
45,816Members
Resources

Similar Threads

Was this page helpful?
Recent Announcements

Similar Threads

Problem with Storage container
SupabaseSSupabase / help-and-questions
4d ago
Storage problem
SupabaseSSupabase / help-and-questions
5w ago
Storage bucket problem
SupabaseSSupabase / help-and-questions
3mo ago
Supabase S3 Storage - StorageUnknownError code: -32603
SupabaseSSupabase / help-and-questions
2y ago