Hi guys new here in cloudflare stuff i try to build webpage that i want to upload my image or any o

Hi guys

new here in cloudflare stuff
i try to build webpage that i want to upload my image or any other files to cloudflare r2. however i got an issues where:

Access to fetch at 'https://property-image.5ccaf923a211272cb29f4f76f561a3d2.r2.cloudflarestorage.com/1708152452157-rekap-all-va-ecoll-per-jan-2022-okt-2023-xlsx?X-Amz-Algorithm=AWS4-HMAC-SHA256&X-Amz-Content-Sha256=UNSIGNED-PAYLOAD&X-Amz-Credential=2ac1e54a60f8a09c9f63ac0b836fa420%2F20240217%2Fauto%2Fs3%2Faws4_request&X-Amz-Date=20240217T064732Z&X-Amz-Expires=300&X-Amz-Signature=ce850f7f970893fbe32f4a71a504ba6fe458658bc6c942ee4d1e2de3ad760159&X-Amz-SignedHeaders=host&x-amz-acl=public-read&x-id=PutObject' from origin 'http://localhost:5173' 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.


not sure why this is happening
image.png
Was this page helpful?