# Getting CORS error while uploading images

**URL:** https://meta.discourse.org/t/getting-cors-error-while-uploading-images/332329
**Category:** Migration
**Created:** [October 23, 2024, 12:07pm UTC](https://meta.discourse.org/t/getting-cors-error-while-uploading-images/332329 "2024-10-23T12:07:19Z")
**Posts on this page:** 3
**Page:** 1

<div class="post-metadata">

### Author: ![Aniket](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/aniket/32/456890_2.png) [@Aniket](https://meta.discourse.org/u/Aniket)
#### Post date: [October 23, 2024, 12:07pm UTC](https://meta.discourse.org/t/getting-cors-error-while-uploading-images/332329/1 "2024-10-23T12:07:19Z")

</div>

Hello,  
I have web\_only setup earlier i was using local storage for uploads now i have configured S3 credentials for uploads but getting CORS error while uploading images.

---

<div class="post-metadata">

### Author: ![jericson](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/jericson/32/116215_2.png) [@jericson](https://meta.discourse.org/u/jericson)
#### Post date: [October 23, 2024, 4:26pm UTC](https://meta.discourse.org/t/getting-cors-error-while-uploading-images/332329/2 "2024-10-23T16:26:45Z")

</div>

There’s not enough detail in your post to know how to solve the problem. You might find more information in the error logs (`/logs/`).

Have you followed the guide for using S3 for image uploads?

> [@Set up file and image uploads to S3](https://meta.discourse.org/t/set-up-file-and-image-uploads-to-s3/7229):
>
> So, you want to use S3 to handle image uploads? Here’s the definitive guide, but also see [Configure an S3 compatible object storage provider for uploads](https://meta.discourse.org/t/configure-an-s3-compatible-object-storage-provider-for-uploads/148916) to see how to configure your app.yml. S3 registration Head over to [https://aws.amazon.com/free/](https://aws.amazon.com/free/) and click on [Create a Free Account] During the create account process, make sure you provide payment information, otherwise you won’t be able to use S3. There’s no registration fee, you will only be charged for [what you use](https://aws.amazon.com/s3/pricing/), if you exceed the [AWS …](https://aws.amazon.com/free/)

---

<div class="post-metadata">

### Author: ![Aniket](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/aniket/32/456890_2.png) [@Aniket](https://meta.discourse.org/u/Aniket)
#### Post date: [October 24, 2024, 7:43am UTC](https://meta.discourse.org/t/getting-cors-error-while-uploading-images/332329/3 "2024-10-24T07:43:54Z")

</div>

getting this error  
 ![This image appears to be a text message warning about a duplicate extension, specifically "wasm" content type, with a timestamp of 2024/10/24 07:13:53. (Captioned by AI)](https://global.discourse-cdn.com/meta/optimized/4X/c/d/1/cd13c9d48430f3139e3265d443724d9781f2f615_2_690x22.png)
