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
9 Replies
The .wasm and .data files are on S3 because they are over 26 MB
Any feedback or help would be much appreciate
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)
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
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
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
But maybe there is an issue here
your cors configuration isn't the issue here
you're not even getting to cors, s3 itself is private/not serving any files
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
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...
actually that's for specific objects, for the entire bucket: https://docs.aws.amazon.com/AmazonS3/latest/userguide/configuring-block-public-access-bucket.html
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.