Can not download avatar in browser[CORS]

Hi,Support Team

I am working on a WebGL project based on unity. Your avatar is very good, and I used your SDK. It worked well for a while, but today it suddenly cannot be downloaded avatar model in the browser .

Can you help me see what happened.The following is the browser error details

Access to fetch at ‘https://models.readyplayer.me/68108bde290294082e2aca2c.json?tail=01a0c0d1-77d2-4bf0-8bda-4ad127649178’ from origin ‘https://172.16.4.204:8080’ has been blocked by CORS policy: Response to preflight request doesn’t pass access control check: It does not have HTTP ok status.

GET https://models.readyplayer.me/68108bde290294082e2aca2c.json?tail=01a0c0d1-77d2-4bf0-8bda-4ad127649178 net::ERR_FAILED

Best Regards

6 Likes

Hi, I am having the same issue CORS issue when fetching model file – Unity SDK v7.3.1.

2 Likes

We also have the same issue.

Currently, none of our users can access our software - how can we fix this asap?

1 Like

@Tom_RPM this is urgent

Same issue for 2 hours now. blocked by CORS policy: Response to preflight request doesn’t pass access control check: It does not have HTTP ok status.

Same problem.

Please add Access-Control-Allow-Origin: * meanwhile you solve the issue

Same problem. This is very urgent

We have the same issues here, Access to fetch at ‘https://models.readyplayer.me/6810c36e607693b08e4d0a08.json?tail=c9e12ebc-e545-46c6-a5af-b3782ae80738’ from origin ‘https://domain.com’ has been blocked by CORS policy: Response to preflight request doesn’t pass access control check: It does not have HTTP ok status

This is a huge issue for us, since webgl is our main platform.

Same problem here. Can Ready Player Me comment on this situation? Are you working on it?

Hey, has anyone heard back or have a fix to this issue?

Same. Still happening..

I’m quite disappointed and frustrated with RPM for not replying to this yet.

Because of this error, all of our paying users were locked out of our software - they use our software with their clients - so this issue has significantly affected us.

I’ve spent the past ~18 hours straight working on a workaround to fix this.

The main issue is that something has seemed to happen (most likely from RPM’s side) that has caused it to not allow fetching of avatar resources due to missing or improper CORS headers in the response.

I tried overriding it with a CORS proxy, but that didn’t work.

I then tried moving the RPM package into a different folder, playing around with some functions and values, but that also didn’t work.

Then, I decided to host the RPM resources (avatars) in our own database and fetch them from there.

We use Google Firebase, and the combination of Firebase, Unity, and WebGL doesn’t work so well together, so I was really hoping to not go this route.

I started by uploading some of my avatars to the Firebase Storage. To do that, I downloaded the .glb (avatar) and .json (metadata) files via my browser (just use the avatar’s .glb link and replace .glb with .json), right click the browser window to save the .json file. Then, I uploaded them to my Firebase Storage with their avatarID as their folder name.

In my code, I’ve got it to read the avatarID that the user is trying to load, and check if that avatarID is in the Firebase Storage - if it is, it downloads it from the Firebase Storage (rather than from RPM).

If the avatarID is not there, it calls a Firebase Function that downloads the .glb and .json files and adds them into folders with the avatarID. Then, it downloads them from there into my web app (also avoiding RPM).

The functionality also works when creating new avatars.

I plan to tidy it up later, but sleep is needed now.

Anyway, we are now back online, which is the main thing.

Let me know if you think this method could work for you, and if I can point you in the right direction.

Also: did I mention I was disappointed and frustrated with RPM?

I’m open to other avatar platforms - please let me know if you’ve found something similar.

1 Like

I’m on the same boat. We needed to test the build yesterday but this CORS error wouldn’t let us access the build.

I would be very much happy to host this sdk in our own servers or switching to an alternative but can’t find anything. I really hope they’re aware and working on this issue on priority.

It seems the bug is fixed

1 Like

Yes, confirmed! It’s working again also in my Unity WebGL app! :tada:

Despite everything, the lack of communication has completely put us off using RPM in our project. This kind of incident is extremely serious. We will take steps to ensure this type of problem doesn’t happen to us again in the future.

1 Like

It can be downloaded normally

Hi everyone,

Thanks for your patience while we investigated the CORS issue affecting avatar downloads in the browser. We’d like to confirm that this has now been resolved and should be working as expected.

Apologies for the inconvenience, and we really appreciate the helpful reports from you all!

This is really not good enough.

Products had been down for 24 hours, teams had to drop everything to create workarounds, and RPM only respond 24 hours after it goes down and when it’s fixed??

Why did RPM not inform us ASAP why this happened and how long it would take to get back online?

What will RPM do to ensure this doesn’t happen again?

I think the real issue here isn’t just the CORS problem with the avatars, it’s RPM’s lack of communication. Imagine how different things could have been if we all visited the forums and saw a clear message: ‘We’ve identified the issue and will have it fixed within the next 24 hours.’ Heck, even 48 hours would’ve been understandable. But because RPM hasn’t communicated clearly, we’ve decided to move away from RPM.

1 Like