ucinteractivesl
04/11/2023, 9:54 PMucinteractivesl
04/11/2023, 9:54 PMUnsmart | Tech debt
04/11/2023, 9:55 PMucinteractivesl
04/11/2023, 9:56 PMkian
04/11/2023, 9:56 PMkian
04/11/2023, 9:56 PMUnsmart | Tech debt
04/11/2023, 9:56 PMucinteractivesl
04/11/2023, 9:56 PMSKRRRTT
04/12/2023, 6:36 AMSKRRRTT
04/12/2023, 6:36 AMSKRRRTT
04/12/2023, 6:36 AMSKRRRTT
04/12/2023, 6:37 AMMike - Dev
04/12/2023, 6:49 AMoldmanmeta
04/12/2023, 7:27 AMlocalhost/:1 Access to fetch at 'https://buketname--->.r2.cloudflarestorage.com/testKeyName?x-id=PutObject' from origin 'http://localhost:8080' 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. If an opaque response serves your needs, set the request's mode to 'no-cors' to fetch the resource with CORS disabled.
I've got a valid API key running on this bucket - not 100% how I can fix this as the AWS SDK is pretty closed off in terms of an interface
This is the call that I am making:
const command = new PutObjectCommand({
Bucket: bucketName,
Key: bucketKeyName,//The name of the object
Body: fileItem,
});
HardAtWork
04/12/2023, 7:30 AMoldmanmeta
04/12/2023, 7:32 AMoldmanmeta
04/12/2023, 7:33 AMHardAtWork
04/12/2023, 7:34 AMoldmanmeta
04/12/2023, 7:35 AMkian
04/12/2023, 7:36 AMkian
04/12/2023, 7:36 AMkian
04/12/2023, 7:36 AMoldmanmeta
04/12/2023, 7:39 AMkian
04/12/2023, 7:40 AMoldmanmeta
04/12/2023, 7:40 AMoldmanmeta
04/12/2023, 7:41 AMkian
04/12/2023, 7:42 AMContent-Type
that isn't `text/plain`/`application/json`, then you'll want to add that into Allowed Headerskian
04/12/2023, 7:42 AMoldmanmeta
04/12/2023, 7:43 AMkian
04/12/2023, 7:44 AM