POST on an Object Storage
... / POST on an Object Storage
BMPCreated with Sketch.BMPZIPCreated with Sketch.ZIPXLSCreated with Sketch.XLSTXTCreated with Sketch.TXTPPTCreated with Sketch.PPTPNGCreated with Sketch.PNGPDFCreated with Sketch.PDFJPGCreated with Sketch.JPGGIFCreated with Sketch.GIFDOCCreated with Sketch.DOC Error Created with Sketch.
Question

POST on an Object Storage

by
ChesneauxI
Created on 2022-10-27 14:30:15 (edited on 2024-09-04 14:24:36) in AI and Machine Learning

Hello,
I would like to transfer files directly to my Object Storage from a form.
I have configured the CORS of my storage object and my GET requests are working fine. But when I want to make a POST request, I get an error: Origin X is not allowed by Access-Control-Allow-Origin. Status code: 400

My CORS configuration is:

Read ACL: .r:*,.rlistings
Write ACL: :
Meta Access-Control-Max-Age: 3600
Meta Access-Control-Expose-Headers: Meta Access-Control-Allow-Origin
Meta Access-Control-Allow-Origin: *
Content-Type: text/plain; charset=utf-8

Something is wrong ?

Thanks for your help !