Unity Data Caching and CORS
We are embedding our app in another companies web page. Our unityweb scripts are being loaded from our AWS S3 bucket. We have CORS enabled on S3, so we don't run into issues with cross origin requests. In order to speed up loading, we enabled data caching in our build. The app loads the first time, but on subsequent requests it fails with a CORS error. The reason seems to be that the IndexedDB has cached a response to the request for our unityweb scripts that do not contain the Access-Control-Allow-Origin header, so the request fails since it is coming from a page hosted in a different domain. Can the data caching feature add the Access-Control-Allow-Origin header, so that data caching can be used in this context?
Did you ever find a solution to this, we're hitting the same issue?
Your answer
Follow this Question
Related Questions
[WebGL] .data.unityweb is not cached in Desktop Safari 0 Answers
Cache/WebGL - Download certain assets at certain times 0 Answers
Unity 5.2.2 webgl bundle loading failing 1 Answer
error: Failed to decompress data for the AssetBundle, when starting a web gl game on a hosted server 1 Answer
WebGL Shader compile issues 1 Answer