Next.js Discord

Discord Forum

Blob Storage - Put with addRandomSuffix: false - generate a CORS error on Access to Storage

Unanswered
Chum salmon posted this in #help-forum
Open in Discord
Chum salmonOP
Has anyone experience issues with adding parameters to put call. Saving works without but we would like to remove suffixes from filenames to be able to access fixed routes from another server.
"Access to fetch at 'https://blob.vercel-storage.com/xx' from origin 'xx' has been blocked by CORS policy: Request header field x-add-random-suffix is not allowed by Access-Control-Allow-Headers in preflight response."
We added config to vercel.json as well as next.config.json but supposed the block is on Vercel Storage side ?

0 Replies