Cloudflare MIME Unity WebGL Problems

Hey all, I'm having a bit of trouble figuring out how to change the MIME for a unity webgl app
No description
9 Replies
Liam
LiamOP14mo ago
The .wasm and .data files are on S3 because they are over 26 MB Any feedback or help would be much appreciate
Chaika
Chaika14mo ago
Your S3 side of things isn't working, no public access enabled looks like https://animore-webgl-character-conversation-demo.s3.amazonaws.com/WebGLBuild_02.wasm ps. Cloudflare has its own object store called R2, super cheap, no bandwidth costs, you can setup a bucket, upload files, and then add a custom domain for it (cdn.example.com)
Liam
LiamOP14mo ago
Do you think it would be easy to set up a bucket using R2? Thanks so much for this. The MIME settings in S3 are correct, but it sounds like I messed up the privacy settings I do have CORS set up for this url though
Chaika
Chaika14mo ago
I do not know much about S3 and I tried to set it up once and I was rather confused for a while. R2 couldn't be simpler, custom domains you add are public read-only access
Liam
LiamOP14mo ago
Maybe I'll just shift over to R2 then This is being a bit of a pain lol I do have CORS set up like this
{
"AllowedHeaders": [
"*"
],
"AllowedMethods": [
"GET"
],
"AllowedOrigins": [
"https://animore-webgl-character-conversation-demo.pages.dev"
],
"ExposeHeaders": [],
"MaxAgeSeconds": 3000
}
]
{
"AllowedHeaders": [
"*"
],
"AllowedMethods": [
"GET"
],
"AllowedOrigins": [
"https://animore-webgl-character-conversation-demo.pages.dev"
],
"ExposeHeaders": [],
"MaxAgeSeconds": 3000
}
]
But maybe there is an issue here
Chaika
Chaika14mo ago
your cors configuration isn't the issue here you're not even getting to cors, s3 itself is private/not serving any files
Liam
LiamOP14mo ago
gotcha. it sounds like the simplest solution is to host the assets using R2 then I'll switch around the assets and let you know if it is fixed Thank you very much @Chaika - apprecaite your help with this
Chaika
Chaika14mo ago
or try google, I mean one upside of S3 is that it is very popular. https://repost.aws/knowledge-center/read-access-objects-s3-bucket
Amazon Web Services, Inc.
Grant public read access to some objects in Amazon S3 bucket
I want some objects in my Amazon Simple Storage Service (Amazon S3) bucket to be publicly readable. However, I don't want to change the permissions on other objects that are in the same bucket. How...
Chaika
Chaika14mo ago
Configuring block public access settings for your S3 buckets - Amaz...
You can use the S3 console, AWS CLI, AWS SDKs, and REST API to grant public access to one or more buckets. You can also block public access to buckets that are already public. For more information, see the sections below.
Want results from more Discord servers?
Add your server