Scale up as you grow — whether you're running one virtual machine or ten thousand.

From GPU-powered inference and Kubernetes to managed databases and storage, get everything you need to build, scale, and deploy intelligent applications.

I need to fetch and download files from webroot/datafiles/images/filename.jpg, but I got CORS error!
The download works when the link is opened through navigator (not fetch http)
ERROR Access to XMLHttpRequest at ‘http://159.89.93.8/datafiles/arquivos/01dadd40-cd06-11ea-bf2e-7384e360a612.jpeg?ignoreInterceptor=true’ from origin ‘http://localhost:8080’ has been blocked by CORS policy: Request header field access-control-allow-origin is not allowed by Access-Control-Allow-Headers in preflight response.
export function download(file: File) {
return api.get(normalizeFileUrl(file.name), {
responseType: 'blob',
}).then(response => {
FileDownload(response, `${file.nome}`);
});
}
I’m using cakephp as API it’s already configured CORS!
gerard
Jon Harris
orbitstorm88
rem3n
yolanda smith
301276acdc124dd982fe86364ba8c4
30ddab6038c044188d489290785dcb
699c9bc0a2c34f248e792cb8d2c6ab
Kent Morlan
sylvaticus
agitechcr
8b8f3c8ea96345bf8ddb0a59a008e2